You are here

function navbar_suppress in Navbar 7

Implementation of hook_suppress()

Allows other modules to suppress display of Navbar

This function should be called from within another module's page callback (preferably using module_invoke()) when the navbar should not be displayed. This is useful for modules that implement popup pages or other special pages where the navbar would be distracting or break the layout.

Parameters

$set: Defaults to TRUE. If called before hook_footer(), the navbar will not be displayed. If FALSE is passed, the suppression state is returned.

1 call to navbar_suppress()
navbar_page_build in ./navbar.module
Implements hook_page_build().

File

./navbar.module, line 1187
Administration navbar for quick access to top level administration items.

Code

function navbar_suppress($set = TRUE) {
  static $suppress = FALSE;
  if (!empty($set) && $suppress === FALSE) {
    $suppress = TRUE;
  }
  return $suppress;
}