You are here

public function views_handler_argument::default_action 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::default_action()
  2. 6.2 handlers/views_handler_argument.inc \views_handler_argument::default_action()

Handle the default action, which means our argument wasn't present.

Override this method only with extreme care.

Return value

bool A boolean value; if TRUE, continue building this view. If FALSE, building the view will be aborted here.

1 call to views_handler_argument::default_action()
views_handler_argument::validate_fail in handlers/views_handler_argument.inc
How to act if validation fails.

File

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

Class

views_handler_argument
Base class for arguments.

Code

public function default_action($info = NULL) {
  if (!isset($info)) {
    $info = $this
      ->default_actions($this->options['default_action']);
  }
  if (!$info) {
    return FALSE;
  }
  if (!empty($info['method args'])) {
    return call_user_func_array(array(
      &$this,
      $info['method'],
    ), $info['method args']);
  }
  else {
    return $this
      ->{$info['method']}();
  }
}