From 43fac0b20e71d6b643b1e9fa3fd29ae1872ba0f6 Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Fri, 10 Dec 2010 16:44:53 +0000 Subject: #994482 by babbage: Fixed Syntax error in drupal_add_js API example --- includes/common.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'includes') diff --git a/includes/common.inc b/includes/common.inc index 4d6dddf2e..4ad4dfad2 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 -- cgit v1.2.3