summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAngie Byron2010-12-10 16:44:53 (GMT)
committerAngie Byron2010-12-10 16:44:53 (GMT)
commit43fac0b20e71d6b643b1e9fa3fd29ae1872ba0f6 (patch)
tree7e11c2af0dcde70c4e3ed7053d5406f8d4dadc39
parent44e47bfb16cd405e1187bc62579211554882e99f (diff)
#994482 by babbage: Fixed Syntax error in drupal_add_js API example
-rw-r--r--includes/common.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/common.inc b/includes/common.inc
index 4d6dddf..4ad4dfa 100644
--- a/includes/common.inc
+++ b/includes/common.inc
@@ -3787,7 +3787,7 @@ function drupal_region_class($region) {
* array('type' => 'inline', 'scope' => 'footer', 'weight' => 5)
* );
* drupal_add_js('http://example.com/example.js', 'external');
- * drupal_add_js(array('myModule', array('key' => 'value')), 'setting');
+ * drupal_add_js(array('myModule' => array('key' => 'value')), 'setting');
* @endcode
*
* Calling drupal_static_reset('drupal_add_js') will clear all JavaScript added