function overlay_preprocess_html

Implements hook_preprocess_HOOK() for html.tpl.php.

If the current page request is inside the overlay, add appropriate classes to the <body> element, and simplify the page title.

See also

overlay_get_mode()

1 call to overlay_preprocess_html()

File

drupal/core/modules/overlay/overlay.module, line 431
Displays the Drupal administration interface in an overlay.

Code

function overlay_preprocess_html(&$variables) {
  if (overlay_get_mode() == 'child') {

    // Add overlay class, so themes can react to being displayed in the overlay.
    $variables['attributes']['class'][] = 'overlay';
  }
}