1 views_handler_argument_file_fid.inc | views_handler_argument_file_fid::title_query() |
Override the behavior of title_query(). Get the filenames.
Overrides views_handler_argument_numeric::title_query
File
- core/
modules/ file/ views/ views_handler_argument_file_fid.inc, line 16 - Definition of views_handler_argument_file_fid.
Class
- views_handler_argument_file_fid
- Argument handler to accept multiple file ids.
Code
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);
}
return $titles;
}