function shortcut_page_alter
7.x shortcut.module | shortcut_page_alter(&$page) |
Implements hook_page_alter().
File
- drupal-7.x/
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';
}
}