| [ Index ] |
PHP Cross Reference of Drupal 6 (yi-drupal) |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * @file 4 * Provide node tnid argument handler. 5 */ 6 7 /** 8 * Argument handler to accept a node translation id. 9 */ 10 class views_handler_argument_node_tnid extends views_handler_argument_numeric { 11 /** 12 * Override the behavior of title(). Get the title of the node. 13 */ 14 function title_query() { 15 $titles = array(); 16 $placeholders = implode(', ', array_fill(0, sizeof($this->value), '%d')); 17 18 $result = db_query("SELECT n.title FROM {node} n WHERE n.tnid IN ($placeholders)", $this->value); 19 while ($term = db_fetch_object($result)) { 20 $titles[] = check_plain($term->title); 21 } 22 return $titles; 23 } 24 } 25
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 |