You are here

function dialog_library in Dialog 7

Same name and namespace in other branches
  1. 7.2 dialog.module \dialog_library()

Implement hook_library().

File

./dialog.module, line 64
The Dialog module provides an API for displaying and interacting with jQuery UI Dialog modals.

Code

function dialog_library() {
  $path = drupal_get_path('module', 'dialog');
  $libraries['dialog'] = array(
    'title' => 'Dialog',
    'website' => 'http://drupal.org/project/dialog',
    'version' => '7.x',
    'js' => array(
      $path . '/jquery.xLazyLoader.js' => array(
        'group' => JS_LIBRARY,
      ),
      $path . '/dialog.js' => array(
        'weight' => 5,
      ),
    ),
    'dependencies' => array(
      array(
        'system',
        'drupal.ajax',
      ),
      array(
        'system',
        'jquery.form',
      ),
      array(
        'system',
        'ui.dialog',
      ),
    ),
  );
  return $libraries;
}