You are here

function modalframe_pre_preprocess_page in Modal Frame API 7

Same name and namespace in other branches
  1. 6 modalframe.module \modalframe_pre_preprocess_page()

Preprocess template variables for page.tpl.php - step 1.

Performance enhancement: prevent template_preprocess_page() from generating sidebar blocks when a modal frame has been requested.

1 string reference to 'modalframe_pre_preprocess_page'
modalframe_theme_registry_alter in ./modalframe.module
Implementation of hook_theme_registry_alter().

File

./modalframe.module, line 90
Provides an API to render an iframe within a modal dialog based on the jQuery UI Dialog plugin.

Code

function modalframe_pre_preprocess_page(&$variables) {
  if (!empty($GLOBALS['modalframe_page_template'])) {
    $variables['show_blocks'] = FALSE;
  }
}