function shortcut_page_alter in Drupal 7
Implements hook_page_alter().
File
- modules/
shortcut/ shortcut.module, line 701 - Allows users to manage customizable lists of shortcut links.
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';
}
}