function views_handler_argument::get_default_argument

Same name in other branches
  1. 7.x-3.x handlers/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 529

Class

views_handler_argument
Base class for arguments.

Code

function get_default_argument() {
    $plugin = $this->get_plugin('argument default');
    if ($plugin) {
        return $plugin->get_argument();
    }
}