From: http://api.drupal.org/api/drupal/includes--common.inc/function/drupal_ad...

Incorrect example:
drupal_add_js(array('myModule', array('key' => 'value')), 'setting')

Should be:
drupal_add_js(array('myModule' => array('key' => 'value')), 'setting')

Patch attached.

CommentFileSizeAuthor
example.patch771 bytesbabbage

Comments

mr.baileys’s picture

Version: 7.0-rc1 » 7.x-dev
Status: Needs review » Reviewed & tested by the community
Issue tags: -doxygen +Quick fix, +DX (Developer Experience)

Applied and reviewed, RTBC.

webchick’s picture

Status: Reviewed & tested by the community » Fixed

Oops. :) Good catch!

Committed to HEAD.

Status: Fixed » Closed (fixed)
Issue tags: -Quick fix, -DX (Developer Experience)

Automatically closed -- issue fixed for 2 weeks with no activity.