function views_handler_argument_null::default_actions
Same name in other branches
- 6.x-3.x handlers/views_handler_argument_null.inc \views_handler_argument_null::default_actions()
Override default_actions() to remove actions that don't make sense for a null argument.
Overrides views_handler_argument::default_actions
File
-
handlers/
views_handler_argument_null.inc, line 45
Class
- views_handler_argument_null
- Argument handler that ignores the argument.
Code
public function default_actions($which = NULL) {
if ($which) {
if (in_array($which, array(
'ignore',
'not found',
'empty',
'default',
'access denied',
))) {
return parent::default_actions($which);
}
return;
}
$actions = parent::default_actions();
unset($actions['summary asc']);
unset($actions['summary desc']);
return $actions;
}