function download_count_entry_load in Download Count 7.2
Same name and namespace in other branches
- 6.2 download_count.module \download_count_entry_load()
- 7.3 download_count.module \download_count_entry_load()
Menu wildcard loader.
File
- ./
download_count.module, line 80 - 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_fetch_array(db_query('SELECT dc.dcid, dc.fid, dc.nid, f.filename FROM {download_count} dc JOIN {files} f ON dc.fid = f.fid WHERE dcid = :dcid', array(
':dcid' => $dcid,
)));
}