function download_count_entry_load in Download Count 7.3
Same name and namespace in other branches
- 6.2 download_count.module \download_count_entry_load()
- 7.2 download_count.module \download_count_entry_load()
Menu wildcard loader.
File
- ./
download_count.module, line 120 - Tracks file downloads for files stored in the drupal files table using the private files setting or custom private filefield.
Code
function download_count_entry_load($dcid) {
return $dcid == 'all' ? $dcid : db_query('SELECT dc.dcid, dc.fid, dc.uid, dc.type, dc.id, dc.ip_address, dc.referrer, dc.timestamp, f.filename, f.uri, f.filemime, f.filesize FROM {download_count} dc JOIN {file_managed} f ON dc.fid = f.fid WHERE dcid = :dcid', array(
':dcid' => $dcid,
))
->fetchObject();
}