The documentation of the function contains the following text, which is the exact same text reported in the documentation for drupal_add_css() (the emphasis is mine):
$options['preprocess'] should be only set to TRUE when a file is required for all typical visitors and most pages of a site. It is critical that all preprocessed files are added unconditionally on every page, even if the files are not needed on a page. This is normally done by calling drupal_add_css() in a hook_init() implementation.
I guess the text contained in drupal_add_js() should reference the drupal_add_js() function.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | 1010376-drupal_add_js-phpdoc-fix.patch | 617 bytes | danillonunes |
| #1 | 1010376-drupal_add_js-phpdoc-fix.patch | 625 bytes | danillonunes |
Comments
Comment #1
danillonunes commentedI think this fixes it.
Comment #3
danillonunes commentedOps, just forgot the
--no-prefixoption for Git.Comment #4
avpadernoThe test bot is happy, and I am happy too. :-)
Comment #5
jhodgdonthanks, me too.
Comment #6
webchickCommitted to HEAD. Thanks! :)
Comment #7
avpadernoHappy new year!