1 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.
File
- core/
modules/ views/ handlers/ views_handler_argument.inc, line 712 - @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']}();
}
}