summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-05-04 14:52:02 +0000
committerDries Buytaert <dries@buytaert.net>2010-05-04 14:52:02 +0000
commit648d8ab87e89cde43bc142b0653ec7105c9fee54 (patch)
tree857547f58ab63eb63d4164cb875527cb148f4251
parent0497b10ec9705c18d9ed9c263f89d3549c1ae7f2 (diff)
downloadbrdo-648d8ab87e89cde43bc142b0653ec7105c9fee54.tar.gz
brdo-648d8ab87e89cde43bc142b0653ec7105c9fee54.tar.bz2
- Patch #511532 by sun: incorrect documentation for hook_library().
-rw-r--r--modules/system/system.api.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/system/system.api.php b/modules/system/system.api.php
index cb2f2d534..64835c86a 100644
--- a/modules/system/system.api.php
+++ b/modules/system/system.api.php
@@ -554,9 +554,9 @@ function hook_js_alter(&$javascript) {
* element of the value.
* - 'css': Like 'js', an array of CSS elements passed to drupal_add_css().
* - 'dependencies': An array of libraries that are required for a library. Each
- * element is an array containing the module and name of the registered
- * library. Note that all dependencies for each dependent library will be
- * added when this library is added.
+ * element is an array listing the module and name of another library. Note
+ * that all dependencies for each dependent library will also be added when
+ * this library is added.
*
* Registered information for a library should contain re-usable data only.
* Module- or implementation-specific data and integration logic should be added
@@ -599,7 +599,7 @@ function hook_library() {
),
'dependencies' => array(
// Require jQuery UI core by System module.
- array('system' => 'ui'),
+ array('system', 'ui'),
// Require our other library.
array('my_module', 'library-1'),
// Require another library.