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 770
@todo.

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();
  }
}