function sooperthemes_gridstack_library in Sooperthemes GridStack 7
Implements hook_library().
File
- ./
sooperthemes_gridstack.module, line 37 - Code for the SooperThemes GridStack feature.
Code
function sooperthemes_gridstack_library() {
$module_path = drupal_get_path('module', 'sooperthemes_gridstack');
$libraries['sooperthemes_gridstack_lib'] = array(
'title' => 'Library for SooperThemes GridStack views style plugin',
'version' => '1.0',
'js' => array(
// $module_path . '/vendor/lodash/lodash.min.js' => array('group' => JS_LIBRARY),
$module_path . '/vendor/underscore/underscore-min.js' => array(
'group' => JS_LIBRARY,
),
$module_path . '/vendor/gridstack/dist/gridstack.min.js' => array(
'group' => JS_LIBRARY,
),
$module_path . '/js/sooperthemes_gridstack.js' => array(
'group' => JS_LIBRARY,
),
),
'css' => array(
$module_path . '/vendor/gridstack/dist/gridstack.min.css' => array(
"group" => CSS_DEFAULT,
),
$module_path . '/styles/css/sooperthemes_gridstack.css' => array(
"group" => CSS_DEFAULT,
),
),
);
return $libraries;
}