You are here

function lightbox2_drupal_json in Lightbox2 5.2

1 call to lightbox2_drupal_json()
lightbox2_filter_xss in ./lightbox2.module

File

./lightbox2.module, line 2449
Enables the use of lightbox2 which places images above your current page, not within. This frees you from the constraints of the layout, particularly column widths.

Code

function lightbox2_drupal_json($var = NULL) {

  // We are returning JavaScript, so tell the browser.
  drupal_set_header('Content-Type: text/javascript; charset=utf-8');
  if (isset($var)) {
    echo drupal_to_js($var);
  }
}