You are here

function nat_handler_argument_term_node_tid_depth::default_actions in Node Auto Term [NAT] 7.2

Same name and namespace in other branches
  1. 6.2 includes/nat_handler_argument_term_node_tid_depth.inc \nat_handler_argument_term_node_tid_depth::default_actions()
  2. 6 includes/nat_handler_argument_term_node_tid_depth.inc \nat_handler_argument_term_node_tid_depth::default_actions()
  3. 7 includes/nat_handler_argument_term_node_tid_depth.inc \nat_handler_argument_term_node_tid_depth::default_actions()

Override default_actions() to remove summary actions.

Overrides views_handler_argument::default_actions

File

includes/nat_handler_argument_term_node_tid_depth.inc, line 61
NAT (Node Auto Term) nid views argument with depth handler.

Class

nat_handler_argument_term_node_tid_depth
Argument handler for NAT terms over NAT nid with depth.

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;
}