function template_preprocess_overlay
template_preprocess_overlay(&$variables)
Implements template_preprocess_HOOK() for overlay.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
File
- modules/overlay/overlay.module, line 513
- Displays the Drupal administration interface in an overlay.
Code
function template_preprocess_overlay(&$variables) { $variables['tabs'] = menu_primary_local_tasks(); $variables['title'] = drupal_get_title(); $variables['disable_overlay'] = overlay_disable_message(); $variables['content_attributes_array']['class'][] = 'clearfix'; }
© 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/template_preprocess_overlay/7.x