function download_count_block_view in Download Count 7.3
Same name and namespace in other branches
- 7.2 download_count.module \download_count_block_view()
Implements hook_block_view().
File
- ./
download_count.module, line 287 - Tracks file downloads for files stored in the drupal files table using the private files setting or custom private filefield.
Code
function download_count_block_view($delta) {
switch ($delta) {
case 'top_files':
$blocks['subject'] = t('Top Downloaded Files');
$blocks['content'] = _download_count_block_contents('top_files');
break;
case 'recent_files':
$blocks['subject'] = t('Recently Downloaded Files');
$blocks['content'] = _download_count_block_contents('recent_files');
break;
}
return $blocks;
}