Index: modules/system/system.module =================================================================== RCS file: /cvs/drupal/drupal/modules/system/system.module,v retrieving revision 1.836 diff -u -p -r1.836 system.module --- modules/system/system.module 3 Nov 2009 06:47:23 -0000 1.836 +++ modules/system/system.module 4 Nov 2009 03:37:33 -0000 @@ -1052,6 +1052,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', @@ -3590,8 +3603,7 @@ function system_build_contextual_links($ '#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')), ), ); }