You are here

function labjs_page_delivery_callback_alter in LABjs 7

Implements hook_page_delivery_callback_alter().

It's too late to call labjs_suppress(). We have no choice but create our own callback.

File

./labjs.module, line 382
LABjs module

Code

function labjs_page_delivery_callback_alter(&$callback) {
  if (module_exists('overlay') && overlay_display_empty_page() && !labjs_suppress()) {
    $callback = 'labjs_deliver_empty_page';
  }
}