You are here

function admin_select_page_alter in Administration Menu select 7

Implements hook_page_alter() on behalf of toolbar.module.

We have to do this as there is no toolbar_suppress() function in core so we must manually disable the toolbar in the page render array if desired.

See also

admin_select_toolbar_suppress()

File

./admin_select.module, line 421
Core functionality for Administration Menu select module.

Code

function admin_select_page_alter(&$page) {
  if (admin_select_toolbar_suppress(FALSE) && !empty($page['page_top']['toolbar'])) {
    $page['page_top']['toolbar']['#access'] = FALSE;
  }
}