shortcut_renderable_links

Versions
7
shortcut_renderable_links($shortcut_set = NULL)

Returns an array of shortcut links, suitable for rendering.

See also

menu_tree()

Parameters

$shortcut_set (optional) An object representing the set whose links will be displayed. If not provided, the user's current set will be displayed.

Return value

An array of shortcut links, in the format returned by the menu system.

▾ 2 functions call shortcut_renderable_links()

shortcut_block_view in modules/shortcut/shortcut.module
Implements hook_block_view().
shortcut_toolbar_pre_render in modules/shortcut/shortcut.module
Pre-render function for adding shortcuts to the toolbar drawer.

Code

modules/shortcut/shortcut.module, line 516

<?php
function shortcut_renderable_links($shortcut_set = NULL) {
  if (!isset($shortcut_set)) {
    $shortcut_set = shortcut_current_displayed_set();
  }
  return menu_tree($shortcut_set->set_name);
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.