These got added inadvertently when drupal_get_js() was added to core. The result is that http://api.drupal.org/api/function/drupal_get_js/6 lists the parameters as:

eter $scope (optional) The scope for which the JavaScript rules should be returned. Defaults to 'header'.

eter $javascript (optional) An array with all JavaScript code. Defaults to the default JavaScript array for the given scope.

Should be applied to 7.x/6.x/5.x.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

webchick’s picture

Status: Active » Needs review
FileSize
860 bytes

Patch.

Wim Leers’s picture

Status: Needs review » Reviewed & tested by the community

I think this patch wins the Most Trivial Patch of the Month Award :)

tjholowaychuk’s picture

Haha yikes.. second that.

Dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed to CVS HEAD and DRUPAL-6. Thanks Angie.

gpk’s picture

Version: 7.x-dev » 5.x-dev
Status: Fixed » Needs review
FileSize
806 bytes

Original patch applied to 5.x with offset and fuzz 2, this one should apply cleanly.

webchick’s picture

Status: Needs review » Reviewed & tested by the community

Looks good. :)

drumm’s picture

Status: Reviewed & tested by the community » Fixed

Committed to 5.x.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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