Implements hook_preprocess_page().
If the current page request is inside the overlay, hide the tabs.
overlay_get_mode()
function overlay_preprocess_page(&$variables) { if (overlay_get_mode() == 'child') { unset($variables['tabs']['#primary']); } }