1 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

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