function views_handler_argument::default_action
Same name in other branches
- 6.x-3.x 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 742
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']}();
}
}