function views_handler_argument::default_action

3.x views_handler_argument.inc views_handler_argument::default_action($info = NULL)
2.x views_handler_argument.inc views_handler_argument::default_action($info = NULL)

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

Override this method only with extreme care.

Return value

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 failes

File

handlers/views_handler_argument.inc, line 680
@todo.

Class

views_handler_argument
Base class for arguments.

Code

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