function views_handler_argument::get_default_argument
3.x views_handler_argument.inc | views_handler_argument::get_default_argument() |
2.x views_handler_argument.inc | views_handler_argument::get_default_argument() |
Get a default argument, if available.
1 call to views_handler_argument::get_default_argument()
- views_handler_argument_date::get_default_argument in handlers/
views_handler_argument_date.inc - Set the empty argument value to the current date, formatted appropriately for this argument.
1 method overrides views_handler_argument::get_default_argument()
- views_handler_argument_date::get_default_argument in handlers/
views_handler_argument_date.inc - Set the empty argument value to the current date, formatted appropriately for this argument.
File
- handlers/
views_handler_argument.inc, line 443
Class
- views_handler_argument
- Base class for arguments.
Code
function get_default_argument() {
$plugin = views_get_plugin('argument default', $this->options['default_argument_type']);
if ($plugin) {
$plugin->init($this->view, $this);
return $plugin->get_argument();
}
}