You are here

public function views_handler_argument::get_default_argument in Views (for Drupal 7) 7.3

Same name and namespace in other branches
  1. 6.3 handlers/views_handler_argument.inc \views_handler_argument::get_default_argument()
  2. 6.2 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.
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.

File

handlers/views_handler_argument.inc, line 835
Definition of views_handler_argument.

Class

views_handler_argument
Base class for arguments.

Code

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