|
Server : Apache/2.4.62 System : FreeBSD fbsdweb2.web.rcn.net 14.1-RELEASE FreeBSD 14.1-RELEASE releng/14.1-n267679-10e31f0946d8 GENERIC amd64 User : www ( 80) PHP Version : 8.3.8 Disable Function : NONE Directory : /domains/afglcweb/ny/sites/all/modules/views/modules/system/ |
Upload File : |
<?php
// $Id: views_handler_argument_file_fid.inc,v 1.1 2008/09/03 19:21:30 merlinofchaos Exp $
/**
* Argument handler to accept a file id.
*/
class views_handler_argument_file_fid extends views_handler_argument {
/**
* Override the behavior of title(). Get the title of the file.
*/
function title() {
$title = db_result(db_query(db_rewrite_sql("SELECT f.filename FROM {files} f WHERE f.fid = %d", $this->argument)));
if (empty($title)) {
return t('No title');
}
return check_plain($title);
}
}