You are here

function accordions_library in Accordions 7

Implements hook_library().

File

./accordions.module, line 148

Code

function accordions_library() {
  $path = drupal_get_path('module', 'accordions');
  $libraries = array();
  $libraries['accordions.collapse'] = array(
    'title' => 'Accordions collapsible items',
    'version' => '1.0',
    'js' => array(
      "{$path}/accordions.js" => array(),
    ),
    'dependencies' => array(
      // accordions.js relies on collapseScrollIntoView in collapse.js
      array(
        'system',
        'drupal.collapse',
      ),
    ),
  );
  return $libraries;
}