function overlay_preprocess_page
Implements hook_preprocess_page().
If the current page request is inside the overlay, hide the tabs.
See also
Archivo
- drupal-7.x/
modules/ overlay/ overlay.module, line 525 - Displays the Drupal administration interface in an overlay.
Código
function overlay_preprocess_page(&$variables) {
if (overlay_get_mode() == 'child') {
unset($variables['tabs']['#primary']);
}
}