You are here

function labjs_deliver_empty_page in LABjs 7

Delivery callback to display an empty page.

This function is used to print out a bare minimum empty page which still has the scripts and styles necessary in order to trigger the overlay to close. Clone from overlay_deliver_empty_page with LABjs enabled.

1 string reference to 'labjs_deliver_empty_page'
labjs_page_delivery_callback_alter in ./labjs.module
Implements hook_page_delivery_callback_alter().

File

./labjs.module, line 395
LABjs module

Code

function labjs_deliver_empty_page() {
  $empty_page = '<html><head><title></title>' . drupal_get_css() . drupal_get_js() . '</head><body class="overlay"><script>$L = $L.wait(function() {Drupal.scriptsready=true;jQuery(document).trigger("scripts-ready");});</script></body></html>';
  print $empty_page;
  drupal_exit();
}