function download_count_theme in Open Social 8
Same name and namespace in other branches
- 8.9 modules/custom/download_count/download_count.module \download_count_theme()
- 8.2 modules/custom/download_count/download_count.module \download_count_theme()
- 8.3 modules/custom/download_count/download_count.module \download_count_theme()
- 8.4 modules/custom/download_count/download_count.module \download_count_theme()
- 8.5 modules/custom/download_count/download_count.module \download_count_theme()
- 8.6 modules/custom/download_count/download_count.module \download_count_theme()
- 8.7 modules/custom/download_count/download_count.module \download_count_theme()
- 8.8 modules/custom/download_count/download_count.module \download_count_theme()
- 10.3.x modules/custom/download_count/download_count.module \download_count_theme()
- 10.0.x modules/custom/download_count/download_count.module \download_count_theme()
- 10.1.x modules/custom/download_count/download_count.module \download_count_theme()
- 10.2.x modules/custom/download_count/download_count.module \download_count_theme()
Implements hook_theme().
File
- modules/
custom/ download_count/ download_count.module, line 96 - Tracks file downloads for files stored in the drupal files table.
Code
function download_count_theme() {
$theme = [
'download_count_file_field_formatter' => [
'variables' => [
'file' => NULL,
'link' => NULL,
'link_url' => NULL,
'link_text' => NULL,
'classes' => NULL,
'count' => NULL,
'file_size' => NULL,
'path_to_socialbase' => NULL,
'node_icon' => NULL,
],
],
];
return $theme;
}