You are here

function views_handler_filter_user_relationships_type::admin_summary in User Relationships 7

Same name and namespace in other branches
  1. 6 user_relationship_views/views_handler_filter_user_relationships_type.inc \views_handler_filter_user_relationships_type::admin_summary()

Display the filter on the administrative summary.

Overrides views_handler_filter_in_operator::admin_summary

File

user_relationship_views/views_handler_filter_user_relationships_type.inc, line 119
User Relationships Views integration. Filter handler for relationship types, with autocomplete for type names. Modeled after views_handler_filter_user_name. @author Alex Karshakevich http://drupal.org/user/183217

Class

views_handler_filter_user_relationships_type
@file User Relationships Views integration. Filter handler for relationship types, with autocomplete for type names. Modeled after views_handler_filter_user_name. @author Alex Karshakevich http://drupal.org/user/183217

Code

function admin_summary() {

  // set up $this->value_options for the parent summary
  $this->value_options = array();
  if ($this->value) {
    $this->value_options = db_query("SELECT rtid, name FROM {user_relationship_types} rt WHERE rtid IN (:values)", array(
      ':values' => $this->value,
    ))
      ->fetchAllKeyed();
  }
  return parent::admin_summary();
}