function shortcut_renderable_links

shortcut_renderable_links($shortcut_set = NULL)

Returns an array of shortcut links, suitable for rendering.

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.

See also

menu_tree()

File

modules/shortcut/shortcut.module, line 635
Allows users to manage customizable lists of shortcut links.

Code

function shortcut_renderable_links($shortcut_set = NULL) {
  if (!isset($shortcut_set)) {
    $shortcut_set = shortcut_current_displayed_set();
  }
  return menu_tree($shortcut_set->set_name);
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!shortcut!shortcut.module/function/shortcut_renderable_links/7.x