overlay_preprocess_page
function overlay_preprocess_page
overlay_preprocess_page(&$variables)
Implements hook_preprocess_page().
If the current page request is inside the overlay, hide the tabs.
See also
File
- modules/overlay/overlay.module, line 539
- Displays the Drupal administration interface in an overlay.
Code
function overlay_preprocess_page(&$variables) { if (overlay_get_mode() == 'child') { unset($variables['tabs']['#primary']); } }
© 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_page/7.x