function jssor_library in Jssor Slider 7
Implements hook_library().
File
- ./
jssor.module, line 32 - Allows support of a new view handler.
Code
function jssor_library() {
// Get the external JSSOR Slider library path.
$slider_lib_src = libraries_get_path('jssor-slider', true);
// Get this module's base location.
$base_path = drupal_get_path('module', 'jssor');
// Add the JSSOR files as Drupal library.
return array(
'jquery.jssor.slider' => array(
'title' => 'JSSOR Slider',
'website' => 'http://www.jssor.com',
'version' => '17.0',
'js' => array(
$base_path . '/js/jssor_view.js' => array(
'weight' => 999,
'scope' => 'footer',
'group' => 500,
),
$slider_lib_src . '/js/jssor.slider.min.js' => array(),
),
'css' => array(
$base_path . '/css/jssor-skin.css' => array(
'type' => 'file',
'media' => 'screen',
),
),
'dependencies' => array(
// Require jQuery UI core by System module.
array(
'system',
'jquery',
),
),
),
);
}