function views_handler_filter_user_relationships_type::admin_summary in User Relationships 6
Same name and namespace in other branches
- 7 user_relationship_views/views_handler_filter_user_relationships_type.inc \views_handler_filter_user_relationships_type::admin_summary()
File
- user_relationship_views/
views_handler_filter_user_relationships_type.inc, line 124 - 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) {
$result = db_query("SELECT * FROM {user_relationship_types} rt WHERE rtid IN (" . implode(', ', $this->value) . ")");
while ($rtype = db_fetch_object($result)) {
$this->value_options[$rtype->rtid] = $rtype->name;
}
}
return parent::admin_summary();
}