function overlay_preprocess_html

Implements hook_preprocess_html().

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()
overlay_preprocess_maintenance_page in modules/overlay/overlay.module
Implements hook_preprocess_maintenance_page().

File

modules/overlay/overlay.module, line 485

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['classes_array'][] = 'overlay';
    }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.