Skip to main content
edited tags
Link
avpaderno
  • 97.9k
  • 15
  • 164
  • 284
Source Link
vfclists
  • 1.3k
  • 1
  • 16
  • 31

How can I load a javascript file into a Drupal 7 page using the Code per Node module?

What is the syntax for including Javascript from a remote location into a Drupal 7 page using the Code per node module?

I have seen this code drupal_add_js('path/to/somescript.js') at Managing JavaScript in Drupal 7 | Drupal.org, but it seems that is not for use on Drupal 7.

What would be the Drupal 7 equivalent?