| [ Index ] |
PHP Cross Reference of Drupal 6 (yi-drupal) |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * Allow role ID(s) as argument 4 */ 5 class views_handler_argument_users_roles_rid extends views_handler_argument_many_to_one { 6 function title_query() { 7 $titles = array(); 8 $placeholders = implode(', ', array_fill(0, sizeof($this->value), '%d')); 9 10 $result = db_query("SELECT name FROM {role} WHERE rid IN ($placeholders)", $this->value); 11 while ($term = db_fetch_object($result)) { 12 $titles[] = check_plain($term->name); 13 } 14 return $titles; 15 } 16 } 17
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Mon Jul 9 18:01:44 2012 | Cross-referenced by PHPXref 0.7 |