function file_download_counter_preprocess_block in File Download 8
Implements hook_preprocess_HOOK() for block templates.
File
- modules/
file_download_counter/ file_download_counter.module, line 144 - Logs and displays content file_download_counter for a site.
Code
function file_download_counter_preprocess_block(&$variables) {
if ($variables['configuration']['provider'] == 'file_download_counter') {
$variables['attributes']['role'] = 'navigation';
}
}