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.
See change record: drupal_add_css(), drupal_add_js() and drupal_add_library() removed in favor of #attached
Current code in extlink.module will return the below PHP Fatal Error:
PHP Fatal error: Call to undefined function drupal_add_js() in /path/to/drupal/modules/extlink/extlink.module on line 42
Comment | File | Size | Author |
---|---|---|---|
#3 | attached-2194483-3.patch | 1.34 KB | anavarre |
#1 | attached-2194483-1.patch | 1.34 KB | anavarre |
Comments
Comment #1
anavarreImplementing #attached removes the PHP Fatal Error completely.
Comment #2
anavarreComment #3
anavarreOops. Looks like I got confused with "css" and "js". New patch should be better.
Comment #5
elachlan CreditAttribution: elachlan commentedThanks Anavarre!