You are here

function download_count_theme in Open Social 8.7

Same name and namespace in other branches
  1. 8.9 modules/custom/download_count/download_count.module \download_count_theme()
  2. 8 modules/custom/download_count/download_count.module \download_count_theme()
  3. 8.2 modules/custom/download_count/download_count.module \download_count_theme()
  4. 8.3 modules/custom/download_count/download_count.module \download_count_theme()
  5. 8.4 modules/custom/download_count/download_count.module \download_count_theme()
  6. 8.5 modules/custom/download_count/download_count.module \download_count_theme()
  7. 8.6 modules/custom/download_count/download_count.module \download_count_theme()
  8. 8.8 modules/custom/download_count/download_count.module \download_count_theme()
  9. 10.3.x modules/custom/download_count/download_count.module \download_count_theme()
  10. 10.0.x modules/custom/download_count/download_count.module \download_count_theme()
  11. 10.1.x modules/custom/download_count/download_count.module \download_count_theme()
  12. 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 95
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;
}