function views_handler_argument_file_fid::title_query
Override the behavior of title_query(). Get the filenames.
Overrides views_handler_argument_numeric::title_query
File
-
modules/
system/ views_handler_argument_file_fid.inc, line 18
Class
- views_handler_argument_file_fid
- Argument handler to accept multiple file ids.
Code
public function title_query() {
$titles = db_select('file_managed', 'f')->fields('f', array(
'filename',
))
->condition('fid', $this->value)
->execute()
->fetchCol();
foreach ($titles as &$title) {
$title = check_plain($title);
}
unset($title);
return $titles;
}