function tour_library_info

Implements hook_library_info().

File

drupal/core/modules/tour/tour.module, line 24
Main functions of the module.

Code

function tour_library_info() {
  $path = drupal_get_path('module', 'tour');
  $libraries['tour'] = array(
    'title' => 'Tour',
    'version' => VERSION,
    'js' => array(
      // Add the JavaScript, with a group and weight such that it will run
      // before modules/overlay/overlay-parent.js.
      $path . '/js/tour.js' => array(
        'group' => JS_LIBRARY,
        'weight' => -1,
      ),
    ),
    'dependencies' => array(
      array(
        'system',
        'jquery',
      ),
      array(
        'system',
        'drupal',
      ),
      array(
        'system',
        'backbone',
      ),
      array(
        'tour',
        'jquery.joyride',
      ),
      array(
        'tour',
        'tour-styling',
      ),
    ),
  );
  $libraries['tour-styling'] = array(
    'title' => 'Tour',
    'version' => VERSION,
    'css' => array(
      $path . '/css/tour.module.css' => array(
        'media' => 'screen',
      ),
    ),
  );
  $libraries['jquery.joyride'] = array(
    'title' => 'Joyride',
    'website' => 'https://github.com/zurb/joyride',
    'version' => '2.0.3',
    'js' => array(
      $path . '/js/jquery.joyride-2.0.3.js' => array(),
    ),
    'css' => array(
      $path . '/css/joyride-2.0.3.css' => array(
        'media' => 'screen',
      ),
    ),
    'dependencies' => array(
      array(
        'system',
        'jquery',
      ),
      array(
        'system',
        'jquery.cookie',
      ),
    ),
  );
  return $libraries;
}