You are here

function shadowbox_add_js in Shadowbox 6.4

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

File

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

Code

function shadowbox_add_js($file) {
  drupal_add_js(drupal_get_path('module', 'shadowbox') . '/' . $file);
}