1 drupal.inc drupal_add_js($data = NULL, $options = NULL)

Adds a JavaScript file, setting, or inline code to the page.

Deprecated

since 1.0.0

See also

backdrop_add_js()

Related topics

File

core/includes/drupal.inc, line 959
Contains constants and function wrappers for Drupal 7.x compatibility.

Code

function drupal_add_js($data = NULL, $options = NULL) {
  return backdrop_add_js($data, $options);
}