00001 <?php 00012 class views_handler_argument_node_tnid extends views_handler_argument_numeric { 00016 function title_query() { 00017 $titles = array(); 00018 00019 $result = db_query("SELECT n.title FROM {node} n WHERE n.tnid IN (:tnids)", array(':tnids' => $this->value)); 00020 foreach ($result as $term) { 00021 $titles[] = check_plain($term->title); 00022 } 00023 return $titles; 00024 } 00025 }