1.12.x drupal.inc drupal_add_library($module, $name, $every_page = NULL)
1.10.x drupal.inc drupal_add_library($module, $name, $every_page = NULL)
1.11.x drupal.inc drupal_add_library($module, $name, $every_page = NULL)
1.7.x drupal.inc drupal_add_library($module, $name, $every_page = NULL)

Adds multiple JavaScript or CSS files at the same time.

Deprecated

since 1.0.0

See also

backdrop_add_library()

Related topics

File

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

Code

function drupal_add_library($module, $name, $every_page = NULL) {
  // Compatibility with System libraries like "drupal.autocomplete".
  $name = str_replace('drupal.', 'backdrop.', $name);
  return backdrop_add_library($module, $name, $every_page);
}