You are here

function dxpr_gridstack_library in DXPR GridStack 7

Implements hook_library().

File

./dxpr_gridstack.module, line 37
Code for the DXPR GridStack feature.

Code

function dxpr_gridstack_library() {
  $module_path = drupal_get_path('module', 'dxpr_gridstack');
  $libraries['dxpr_gridstack_lib'] = array(
    'title' => 'Library for DXPR 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/dxpr_gridstack.js' => array(
        'group' => JS_LIBRARY,
      ),
    ),
    'css' => array(
      $module_path . '/vendor/gridstack/dist/gridstack.min.css' => array(
        "group" => CSS_DEFAULT,
      ),
      $module_path . '/styles/css/dxpr_gridstack.css' => array(
        "group" => CSS_DEFAULT,
      ),
    ),
  );
  return $libraries;
}