1 views_handler_argument_null.inc views_handler_argument_null::default_actions($which = NULL)

Override default_actions() to remove actions that don't make sense for a null argument.

Overrides views_handler_argument::default_actions

File

core/modules/views/handlers/views_handler_argument_null.inc, line 41
Definition of views_handler_argument_null.

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', 'access denied'))) {
      return parent::default_actions($which);
    }
    return;
  }
  $actions = parent::default_actions();
  unset($actions['summary asc']);
  unset($actions['summary desc']);
  return $actions;
}