summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-11-08 10:29:23 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-11-08 10:29:23 +0000
commit905d7c66c413bad9607b9dccb6901a958d9d1812 (patch)
tree69fa1cc9c6c2f16f1cf7cbfbf8a129ea44aacca4 /modules
parent4d46b7cdf838900dc3f052197b63a9ce80d3992b (diff)
downloadbrdo-905d7c66c413bad9607b9dccb6901a958d9d1812.tar.gz
brdo-905d7c66c413bad9607b9dccb6901a958d9d1812.tar.bz2
#622766 by sun: Add contextual links UI as a JS library.
Diffstat (limited to 'modules')
-rw-r--r--modules/system/system.module16
1 files changed, 14 insertions, 2 deletions
diff --git a/modules/system/system.module b/modules/system/system.module
index b54750aea..636ce7f30 100644
--- a/modules/system/system.module
+++ b/modules/system/system.module
@@ -1056,6 +1056,19 @@ function system_library() {
),
);
+ // Contextual links.
+ $libraries['contextual-links'] = array(
+ 'title' => 'Contextual links',
+ 'website' => 'http://drupal.org/node/473268',
+ 'version' => '1.0',
+ 'js' => array(
+ 'misc/contextual_links.js' => array(),
+ ),
+ 'css' => array(
+ 'misc/contextual_links.css' => array(),
+ ),
+ );
+
// Vertical Tabs.
$libraries['vertical-tabs'] = array(
'title' => 'Vertical Tabs',
@@ -3613,8 +3626,7 @@ function system_build_contextual_links($element) {
'#links' => $links,
'#attributes' => array('class' => array('contextual-links')),
'#attached' => array(
- 'js' => array('misc/contextual_links.js'),
- 'css' => array('misc/contextual_links.css'),
+ 'library' => array(array('system', 'contextual-links')),
),
);
}