function overlay_preprocess_page

Implements hook_preprocess_page().

If the current page request is inside the overlay, hide the tabs.

See also

overlay_get_mode()

File

modules/overlay/overlay.module, line 539

Code

function overlay_preprocess_page(&$variables) {
    if (overlay_get_mode() == 'child') {
        unset($variables['tabs']['#primary']);
    }
}

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