function download_count_entry_load in Download Count 6.2
Same name and namespace in other branches
- 7.3 download_count.module \download_count_entry_load()
- 7.2 download_count.module \download_count_entry_load()
Menu wildcard loader.
File
- ./
download_count.module, line 84 - 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, dc.uid, dc.ip_address, dc.referrer, dc.timestamp, f.filename, f.filesize FROM {download_count} dc JOIN {files} f ON dc.fid = f.fid WHERE dcid = %d', $dcid));
}