function slick_ui_library in Slick Carousel 7.2
Same name and namespace in other branches
- 7.3 slick_ui/slick_ui.module \slick_ui_library()
Implements hook_library().
File
- slick_ui/
slick_ui.module, line 28 - Provides the Slick carousel export UI.
Code
function slick_ui_library() {
$path = drupal_get_path('module', 'slick');
$info = system_get_info('module', 'slick_ui');
$libraries['slick.ui'] = array(
'title' => 'Slick UI',
'website' => 'http://drupal.org/project/slick_ui',
'version' => !empty($info['version']) ? $info['version'] : '7.x-2.x',
'js' => array(
$path . '/js/slick.admin.ui.min.js' => array(
'group' => JS_DEFAULT,
'weight' => 3,
),
),
'css' => array(
$path . '/css/admin/slick.admin--ui--field.css' => array(
'group' => CSS_THEME + 1,
),
$path . '/css/admin/slick.admin--ui.css' => array(
'group' => CSS_THEME + 1,
'weight' => 9,
),
),
);
return $libraries;
}