function jquery_countdown_library in jQuery Countdown 7
Same name and namespace in other branches
- 7.2 jquery_countdown.module \jquery_countdown_library()
Implementation of hook_library() provides the jquery.countdown script with css as library
File
- ./
jquery_countdown.module, line 138
Code
function jquery_countdown_library() {
$libraries = array();
// jquery.countdown core script
$libraries['jquery.countdown'] = array(
'title' => 'jQuery Countdown',
'website' => 'http://keith-wood.name/countdown.html',
'version' => '1.5.9',
'js' => array(
drupal_get_path('module', 'jquery_countdown') . '/jquery_countdown/jquery.countdown.js' => array(),
drupal_get_path('module', 'jquery_countdown') . '/jquery_countdown.js' => array(),
drupal_get_path('module', 'jquery_countdown') . '/jquery.countdown-drupal.js' => array(
'group' => JS_THEME,
),
),
'css' => array(
drupal_get_path('module', 'jquery_countdown') . '/jquery_countdown/jquery.countdown.css' => array(
'type' => 'file',
'media' => 'screen',
),
),
);
return $libraries;
}