You are here

function gridstack_library_info_alter in GridStack 8

Same name and namespace in other branches
  1. 8.2 gridstack.module \gridstack_library_info_alter()

Implements hook_library_info_alter().

File

./gridstack.module, line 48
Provides GridStack integration to have multi-column grids with drag-and-drop.

Code

function gridstack_library_info_alter(&$libraries, $extension) {
  if ($extension === 'gridstack' && function_exists('libraries_get_path')) {
    $libraries['gridstack']['js'] = [
      '/' . libraries_get_path('gridstack') . '/dist/gridstack.min.js' => [],
    ];
  }
}