Implements hook_library_info().
function contextual_library_info() {
$path = drupal_get_path('module', 'contextual');
$libraries['drupal.contextual-links'] = array(
'title' => 'Contextual Links',
'website' => 'http://drupal.org/node/473268',
'version' => VERSION,
'js' => array(
// Add the JavaScript, with a group and weight such that it will run
// before modules/contextual/contextual.toolbar.js.
$path . '/contextual.js' => array(
'group' => JS_LIBRARY,
'weight' => -2,
),
),
'css' => array(
$path . '/css/contextual.module.css' => array(),
$path . '/css/contextual.theme.css' => array(),
),
'dependencies' => array(
array(
'system',
'jquery',
),
array(
'system',
'drupal',
),
array(
'system',
'drupalSettings',
),
array(
'system',
'backbone',
),
array(
'system',
'modernizr',
),
array(
'system',
'jquery.once',
),
),
);
$libraries['drupal.contextual-toolbar'] = array(
'title' => 'Contextual Links Toolbar Tab',
'version' => VERSION,
'js' => array(
// Add the JavaScript, with a group and weight such that it will run
// before modules/overlay/overlay-parent.js.
$path . '/contextual.toolbar.js' => array(
'group' => JS_LIBRARY,
'weight' => -1,
),
),
'css' => array(
$path . '/css/contextual.toolbar.css' => array(),
),
'dependencies' => array(
array(
'system',
'jquery',
),
array(
'system',
'drupal',
),
array(
'system',
'backbone',
),
array(
'system',
'jquery.once',
),
array(
'system',
'drupal.tabbingmanager',
),
array(
'system',
'drupal.announce',
),
),
);
return $libraries;
}