You are here

public function views_handler_argument_term_node_tid_depth::default_actions in Views (for Drupal 7) 7.3

Same name and namespace in other branches
  1. 6.3 modules/taxonomy/views_handler_argument_term_node_tid_depth.inc \views_handler_argument_term_node_tid_depth::default_actions()
  2. 6.2 modules/taxonomy/views_handler_argument_term_node_tid_depth.inc \views_handler_argument_term_node_tid_depth::default_actions()

Override default_actions() to remove summary actions.

Overrides views_handler_argument::default_actions

File

modules/taxonomy/views_handler_argument_term_node_tid_depth.inc, line 81
Definition of views_handler_argument_term_node_tid_depth.

Class

views_handler_argument_term_node_tid_depth
Argument handler for taxonomy terms with depth.

Code

public 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']);
  unset($actions['summary asc by count']);
  unset($actions['summary desc by count']);
  return $actions;
}