Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 CreditAttribution: danillonunes commentedI think this fixes it.
Comment #3
danillonunes CreditAttribution: danillonunes commentedOps, just forgot the
--no-prefix
option for Git.Comment #4
apadernoThe test bot is happy, and I am happy too. :-)
Comment #5
jhodgdonthanks, me too.
Comment #6
webchickCommitted to HEAD. Thanks! :)
Comment #7
apadernoHappy new year!