function flexslider_library in Flex Slider 7.2
Same name and namespace in other branches
- 7 flexslider.module \flexslider_library()
Implements hook_library().
We also define FlexSlider through the core library callbacks
File
- ./
flexslider.module, line 66 - A light-weight, customizable image gallery plugin for Drupal based on jQuery
Code
function flexslider_library() {
$module_path = drupal_get_path('module', 'flexslider');
$library = libraries_detect('flexslider');
$libraries['flexslider'] = array(
'title' => $library['name'],
'website' => $library['vendor url'],
'version' => $library['version'],
'js' => array(
$library['library path'] . '/' . key($library['files']['js']) => array(
'scope' => 'footer',
),
),
'css' => array(
$library['library path'] . '/' . key($library['files']['css']) => array(
'type' => 'file',
'media' => 'screen',
),
$module_path . key($library['integration files']['flexslider']['css']) => array(
'type' => 'file',
'media' => 'screen',
),
),
);
return $libraries;
}