function entity_embed_library in Entity Embed 7
Same name and namespace in other branches
- 7.2 entity_embed.module \entity_embed_library()
File
- ./
entity_embed.module, line 428 - Provides a CKEditor plugin and text filter for embedding and rendering entities.
Code
function entity_embed_library() {
$libraries['drupal.dialog'] = array(
'title' => 'Drupal Dialog',
'website' => 'http://www.drupal.org',
'version' => VERSION,
'js' => array(
drupal_get_path('module', 'entity_embed') . '/js/dialog/dialog.js' => array(
'weight' => 2,
),
drupal_get_path('module', 'entity_embed') . '/js/dialog/dialog.position.js' => array(
'weight' => 2,
),
drupal_get_path('module', 'entity_embed') . '/js/dialog/dialog.jquery-ui.js' => array(
'weight' => 2,
),
),
'css' => array(
drupal_get_path('module', 'entity_embed') . '/js/dialog/dialog.theme.css' => array(),
),
'dependencies' => array(
array(
'system',
'jquery',
),
array(
'system',
'ui.dialog',
),
array(
'entity_embed',
'drupal.debounce',
),
array(
'entity_embed',
'drupal.displace',
),
),
);
$libraries['drupal.dialog.ajax'] = array(
'title' => 'Drupal AJAX Dialog',
'website' => 'http://www.drupal.org',
'version' => VERSION,
'js' => array(
drupal_get_path('module', 'entity_embed') . '/js/dialog/dialog.ajax.js' => array(
'weight' => 2,
),
),
'dependencies' => array(
array(
'system',
'jquery',
),
array(
'system',
'drupal.ajax',
),
array(
'entity_embed',
'drupal.dialog',
),
),
);
$libraries['drupal.displace'] = array(
'title' => 'Drupal Displace',
'website' => 'http://www.drupal.org',
'version' => VERSION,
'js' => array(
drupal_get_path('module', 'entity_embed') . '/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', 'entity_embed') . '/js/drupal/debounce.js' => array(
'weight' => 2,
),
),
);
$libraries['drupal.editor.dialog'] = array(
'title' => 'Drupal Editor Dialog',
'website' => 'http://www.drupal.org',
'version' => VERSION,
'js' => array(
drupal_get_path('module', 'entity_embed') . '/js/editor/editor.dialog.js' => array(
'weight' => 2,
),
),
'dependencies' => array(
array(
'system',
'jquery',
),
array(
'system',
'drupal.ajax',
),
array(
'entity_embed',
'drupal.dialog',
),
),
);
// Register libraries on behalf of seven.theme.
if (drupal_theme_access('seven')) {
$libraries['seven.drupal.dialog'] = array(
'title' => 'Seven Drupal Dialog',
'website' => 'http://www.drupal.org',
'version' => VERSION,
'css' => array(
drupal_get_path('module', 'entity_embed') . '/themes/seven/css/components/dialog.theme.css' => array(),
drupal_get_path('module', 'entity_embed') . '/themes/seven/css/components/buttons.css' => array(),
),
);
$libraries['seven.jquery.ui'] = array(
'title' => 'Seven jQuery UI',
'website' => 'http://www.drupal.org',
'version' => VERSION,
'css' => array(
drupal_get_path('module', 'entity_embed') . '/themes/seven/css/components/jquery.ui/theme.css' => array(
'weight' => -1,
),
),
);
}
return $libraries;
}