You are here

function shadowbox_library_add_js in Shadowbox 6.4

Same name and namespace in other branches
  1. 6.3 shadowbox.module \shadowbox_library_add_js()
1 call to shadowbox_library_add_js()
shadowbox_construct_header in ./shadowbox.module
Build the Shadowbox header by adding the necessary CSS and JS files.

File

./shadowbox.module, line 383
Shadowbox, a JavaScript media viewer application for displaying content in a modal dialogue.

Code

function shadowbox_library_add_js($file) {
  drupal_add_js(variable_get('shadowbox_location', SHADOWBOX_DEFAULT_PATH) . '/' . $file);
}