Go to the documentation of this file.00001 <?php
00012 class views_handler_argument_user_uid extends views_handler_argument_numeric {
00019 function title_query() {
00020 if (!$this->argument) {
00021 return array(variable_get('anonymous', t('Anonymous')));
00022 }
00023
00024 $titles = array();
00025
00026 $result = db_query("SELECT u.name FROM {users} u WHERE u.uid IN (:uids)", array(':uids' => $this->value));
00027 foreach ($result as $term) {
00028 $titles[] = check_plain($term->name);
00029 }
00030 return $titles;
00031 }
00032 }