function dialog_library in Dialog 7.2
Same name and namespace in other branches
- 7 dialog.module \dialog_library()
File
- ./
dialog.module, line 30 - Provides an API for opening content in a dialog.
Code
function dialog_library() {
$libraries['drupal.dialog'] = array(
'title' => 'Drupal Dialog',
'website' => 'http://www.drupal.org',
'version' => VERSION,
'js' => array(
drupal_get_path('module', 'dialog') . '/js/dialog/dialog.js' => array(
'weight' => 2,
),
drupal_get_path('module', 'dialog') . '/js/dialog/dialog.position.js' => array(
'weight' => 2,
),
drupal_get_path('module', 'dialog') . '/js/dialog/dialog.jquery-ui.js' => array(
'weight' => 2,
),
),
'css' => array(
drupal_get_path('module', 'dialog') . '/js/dialog/dialog.theme.css' => array(),
),
'dependencies' => array(
array(
'system',
'jquery',
),
array(
'system',
'ui.dialog',
),
array(
'dialog',
'drupal.debounce',
),
array(
'dialog',
'drupal.displace',
),
),
);
$libraries['drupal.dialog.ajax'] = array(
'title' => 'Drupal AJAX Dialog',
'website' => 'http://www.drupal.org',
'version' => VERSION,
'js' => array(
drupal_get_path('module', 'dialog') . '/js/dialog/dialog.ajax.js' => array(
'weight' => 2,
),
),
'dependencies' => array(
array(
'system',
'jquery',
),
array(
'system',
'drupal.ajax',
),
array(
'dialog',
'drupal.dialog',
),
),
);
$libraries['drupal.displace'] = array(
'title' => 'Drupal Displace',
'website' => 'http://www.drupal.org',
'version' => VERSION,
'js' => array(
drupal_get_path('module', 'dialog') . '/js/drupal/displace.js' => array(
'weight' => 2,
),
),
'dependencies' => array(
array(
'system',
'jquery',
),
),
);
$libraries['drupal.debounce'] = array(
'title' => 'Drupal Debounce',
'website' => 'http://www.drupal.org',
'version' => VERSION,
'js' => array(
drupal_get_path('module', 'dialog') . '/js/drupal/debounce.js' => array(
'weight' => 2,
),
),
);
// Register libraries on behalf of classy.theme.
$libraries['classy.drupal.dialog'] = array(
'title' => 'Classy Drupal Dialog',
'website' => 'http://www.drupal.org',
'version' => VERSION,
'css' => array(
drupal_get_path('module', 'dialog') . '/themes/classy/css/components/buttons.css' => array(),
drupal_get_path('module', 'dialog') . '/themes/classy/css/components/dialog.css' => array(),
drupal_get_path('module', 'dialog') . '/themes/classy/css/components/ui-dialog.css' => array(),
),
);
// Register libraries on behalf of bartik.theme.
$libraries['bartik.drupal.dialog'] = array(
'title' => 'Bartik Drupal Dialog',
'website' => 'http://www.drupal.org',
'version' => VERSION,
'css' => array(
drupal_get_path('module', 'dialog') . '/themes/bartik/css/components/buttons.css' => array(),
drupal_get_path('module', 'dialog') . '/themes/bartik/css/components/ui-dialog.css' => array(),
),
'dependencies' => array(
array(
'dialog',
'classy.drupal.dialog',
),
),
);
// Register libraries on behalf of seven.theme.
$libraries['seven.ckeditor-dialog'] = array(
'title' => 'Custom CKEditor dialog styling for the Seven theme.',
'version' => VERSION,
'css' => array(
drupal_get_path('module', 'dialog') . '/themes/seven/css/theme/ckeditor-dialog.css' => array(),
),
);
$libraries['seven.drupal.dialog'] = array(
'title' => 'Seven Drupal Dialog',
'website' => 'http://www.drupal.org',
'version' => VERSION,
'css' => array(
drupal_get_path('module', 'dialog') . '/themes/seven/css/components/buttons.css' => array(),
drupal_get_path('module', 'dialog') . '/themes/seven/css/components/dialog.css' => array(),
),
);
$libraries['seven.jquery.ui'] = array(
'title' => 'Seven jQuery UI',
'website' => 'http://www.drupal.org',
'version' => VERSION,
'css' => array(
drupal_get_path('module', 'dialog') . '/themes/seven/css/components/jquery.ui/theme.css' => array(
'weight' => -1,
),
),
);
return $libraries;
}