--- jquery_ui.module	2009-06-29 02:09:27.000000000 +0200
+++ ../jquery_ui/jquery_ui.module	2009-08-01 01:01:09.000000000 +0200
@@ -9,7 +9,7 @@
  */
 
 /**
- * Implementation of hook_help().
+ * Implement hook_help().
  */
 function jquery_ui_help($path, $arg) {
   switch ($path) {
@@ -73,10 +73,10 @@ EOT;
 }
 
 /**
- * Implementation of hook_library().
+ * Implement hook_library_alter().
  */
-function jquery_ui_library_alter(&$libraries) {
-  foreach ($libraries['system'] as $library => $info) {
+function jquery_ui_library_alter(&$libraries, $module) {
+  foreach ($libraries as $library => $info) {
     if (strpos($library, 'ui') === 0) {
       $libraries['system'][$library]['add callbacks'][] = 'jquery_ui_library_add_ui';
     }
