function js_library_load in jQuery Plugin Handler (JQP) 6.2
Loads a single library
Parameters
$name: the name of the library to add
2 calls to js_library_load()
- drupal_add_js_library in ./
jqp.module - Add a shared library from the javascript library directory
- jqp_rebuild_cache in ./
jqp.module - Rebuilds the javascript libraries cache.
File
- ./
jqp.module, line 541 - Used to register and load javascript libraries and plugins from a cetral point
Code
function js_library_load($name) {
static $js_libraries;
if (empty($js_libraries)) {
$js_libraries = jqp_list();
}
return $js_libraries[$name];
}