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

Provide a list of default behaviors for this argument if the argument is not present.

Override this method to provide additional (or fewer) default behaviors.

Overrides views_handler_argument::default_actions

File

core/modules/comment/views/views_handler_argument_comment_user_uid.inc, line 29
Definition of views_handler_argument_comment_user_uid.

Class

views_handler_argument_comment_user_uid
Argument handler to accept a user id to check for nodes that user posted or commented on.

Code

function default_actions($which = NULL) {
  // Disallow summary views on this argument.
  if (!$which) {
    $actions = parent::default_actions();
    unset($actions['summary asc']);
    unset($actions['summary desc']);
    return $actions;
  }

  if ($which != 'summary asc' && $which != 'summary desc') {
    return parent::default_actions($which);
  }
}