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

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

anavarre’s picture

FileSize
1.34 KB

Implementing #attached removes the PHP Fatal Error completely.

anavarre’s picture

Status: Active » Needs review
anavarre’s picture

FileSize
1.34 KB

Oops. Looks like I got confused with "css" and "js". New patch should be better.

elachlan’s picture

Status: Needs review » Fixed

Thanks Anavarre!

Status: Fixed » Closed (fixed)

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