diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-05-04 14:52:02 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-05-04 14:52:02 +0000 |
commit | 648d8ab87e89cde43bc142b0653ec7105c9fee54 (patch) | |
tree | 857547f58ab63eb63d4164cb875527cb148f4251 /modules | |
parent | 0497b10ec9705c18d9ed9c263f89d3549c1ae7f2 (diff) | |
download | brdo-648d8ab87e89cde43bc142b0653ec7105c9fee54.tar.gz brdo-648d8ab87e89cde43bc142b0653ec7105c9fee54.tar.bz2 |
- Patch #511532 by sun: incorrect documentation for hook_library().
Diffstat (limited to 'modules')
-rw-r--r-- | modules/system/system.api.php | 8 |
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. |