function shortcut_page_alter

Implements hook_page_alter().

File

modules/shortcut/shortcut.module, line 701

Code

function shortcut_page_alter(&$page) {
    if (isset($page['page_top']['toolbar'])) {
        // If the toolbar is available, add a pre-render function to display the
        // current shortcuts in the toolbar drawer.
        $page['page_top']['toolbar']['#pre_render'][] = 'shortcut_toolbar_pre_render';
    }
}

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