You are here

function download_count_statistics_init in Download Count 6.2

Implementation of hook_init().

File

./download_count_statistics.module, line 11
Provides statistics for download_count module data.

Code

function download_count_statistics_init() {
  if (arg(0) == 'download_count' && arg(2) == 'details' && variable_get('download_count_statistics_sparklines', 0)) {
    drupal_add_js(drupal_get_path('module', 'download_count_statistics') . '/jquery.sparkline.min.js');
  }
}