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.
API page: https://api.drupal.org/api/drupal/modules%21system%21system.api.php/func...
The sentence
"To add CSS or JS that should be present on all pages..."
is inaccurate. Suggested improvement
"To add static CSS or JS that should be present on all pages..."
See also https://api.drupal.org/api/drupal/includes%21common.inc/function/drupal_...
Comment | File | Size | Author |
---|---|---|---|
#8 | static_js_or_css_in_info_file-2873952-8.patch | 602 bytes | tatarbj |
#5 | statis.jpg | 56.17 KB | mahalingam_cs |
Comments
Comment #2
afagioliComment #3
amit0212 CreditAttribution: amit0212 as a volunteer and at Iksula commentedLike this, you can use css and js.
Comment #4
tatarbjI totally agree with the proposal, here is the patch that fixes this documentation mistake.
Comment #5
mahalingam_cs CreditAttribution: mahalingam_cs at TATA Consultancy Services commentedApplied patch from #4 successfully. The sentence is updated successfully. Attached screenshot
Comment #6
David_Rothstein CreditAttribution: David_Rothstein as a volunteer commentedCan you clarify what the word "static" is supposed to mean in this context?
If the idea is that it's referring to CSS and JS files (as opposed to e.g. inline CSS and JS) I think it would be preferable to say that directly, e.g. "To add CSS or JS files that should be present on all pages..."
Comment #7
afagioliDavid,
my suggestion came out while trying to add inline CSS/JS, so your:
"To add CSS or JS files that should be present on all pages..." will work even better.
Thanks
Comment #8
tatarbjHi @David_Rotstein and @augustofagioli,
yes, i think that makes more sense then using static word that could confuse ppl.
I've created a new patch for this.
Cheers,
Balazs.
Comment #9
Dinesh18 CreditAttribution: Dinesh18 as a volunteer commentedpatch #8 sounds good and more appropriate.
Changing the status to RTBC
Comment #10
afagioliCool. Thanks!
Comment #11
David_Rothstein CreditAttribution: David_Rothstein as a volunteer commentedCommitted to 7.x - thanks!