function download_count_library in Download Count 7.3
Implements hook_library().
File
- ./
download_count.module, line 127 - Tracks file downloads for files stored in the drupal files table using the private files setting or custom private filefield.
Code
function download_count_library() {
if (module_exists('libraries')) {
$path = libraries_get_path('jquery.sparkline', FALSE) . '/jquery.sparkline.min.js';
}
else {
$path = drupal_get_path('module', 'download_count') . '/jquery.sparkline.min.js';
}
$libraries['jquery.sparkline'] = array(
'title' => 'jquery sparkline',
'website' => 'http://www.omnipotent.net/jquery.sparkline/',
'version' => '1.6',
'js' => array(
$path => array(),
),
);
return $libraries;
}