function shortcut_renderable_links
Same name in other branches
- 9 core/modules/shortcut/shortcut.module \shortcut_renderable_links()
- 8.9.x core/modules/shortcut/shortcut.module \shortcut_renderable_links()
- 10 core/modules/shortcut/shortcut.module \shortcut_renderable_links()
- 11.x core/modules/shortcut/shortcut.module \shortcut_renderable_links()
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
2 calls to 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.
File
-
modules/
shortcut/ shortcut.module, line 635
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);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.