function views_handler_argument_null::default_actions
Same name in other branches
- 7.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 35
Class
- views_handler_argument_null
- Argument handler that ignores the argument.
Code
function default_actions($which = NULL) {
if ($which) {
if (in_array($which, array(
'ignore',
'not found',
'empty',
'default',
))) {
return parent::default_actions($which);
}
return;
}
$actions = parent::default_actions();
unset($actions['summary asc']);
unset($actions['summary desc']);
return $actions;
}