overlay_preprocess_html
function overlay_preprocess_html
overlay_preprocess_html(&$variables)
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
File
- modules/overlay/overlay.module, line 485
- 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['classes_array'][] = 'overlay'; } }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!overlay!overlay.module/function/overlay_preprocess_html/7.x