function lingotek_library in Lingotek Translation 7.3
Same name and namespace in other branches
- 7.4 lingotek.module \lingotek_library()
Implements hook_library().
File
- ./
lingotek.module, line 1432
Code
function lingotek_library() {
$path = drupal_get_path('module', 'lingotek');
$options = array(
'scope' => 'footer',
'attributes' => array(
'defer' => TRUE,
),
);
$libraries['lingotek-navbar-switcher'] = array(
'title' => 'Lingotek Language Switcher',
'version' => VERSION,
'css' => array(
$path . '/style/lingotek.navbar.css',
),
'js' => array(
$path . '/js/lingotek-navbar-switcher.js' => $options,
),
'dependencies' => array(
array(
'system',
'jquery',
),
array(
'responsive_preview',
'debounce',
),
array(
'responsive_preview',
'backbone',
),
array(
'responsive_preview',
'jquery.ui.position',
),
),
);
return $libraries;
}