1.7.x drupal.inc drupal_add_js($data = NULL, $options = NULL)
1.10.x drupal.inc drupal_add_js($data = NULL, $options = NULL)
1.8.x drupal.inc drupal_add_js($data = NULL, $options = NULL)
1.9.x 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

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);
}