You are here

function slickgrid_library in Slickgrid 7

Same name and namespace in other branches
  1. 7.2 slickgrid.module \slickgrid_library()

Implementation of hook_library().

File

./slickgrid.module, line 81

Code

function slickgrid_library() {
  $path = libraries_get_path('slickgrid');

  // Slickgrid core library
  $libraries['slickgrid'] = array(
    'title' => 'Slickgrid',
    'website' => 'https://github.com/mleibman/SlickGrid/',
    'version' => 'Master',
    'js' => array(
      $path . '/lib/firebugx.js' => array(),
      $path . '/lib/jquery.event.drag-2.0.min.js' => array(),
      $path . '/slick.core.js' => array(),
      $path . '/slick.dataview.js' => array(),
      $path . '/slick.grid.js' => array(),
      $path . '/plugins/slick.checkboxselectcolumn.js' => array(),
      $path . '/plugins/slick.rowselectionmodel.js' => array(),
      $path . '/controls/slick.columnpicker.js' => array(),
    ),
    'css' => array(
      $path . '/slick.grid.css' => array(),
      $path . '/controls/slick.columnpicker.css' => array(),
    ),
    'dependencies' => array(
      // Require jQuery UI sortable by System module.
      array(
        'system',
        'ui.sortable',
      ),
      // Require jQuery UI resizable by System module.
      array(
        'system',
        'ui.resizable',
      ),
      // Require jQuery UI effects by System module.
      array(
        'system',
        'effects.highlight',
      ),
    ),
  );
  return $libraries;
}