function shortcut_link_access in Drupal 7
Access callback for editing a link in a shortcut set.
1 string reference to 'shortcut_link_access'
- shortcut_menu in modules/
shortcut/ shortcut.module - Implements hook_menu().
File
- modules/
shortcut/ shortcut.module, line 293 - Allows users to manage customizable lists of shortcut links.
Code
function shortcut_link_access($menu_link) {
// The link must belong to a shortcut set that the current user has access
// to edit.
if ($shortcut_set = shortcut_set_load($menu_link['menu_name'])) {
return shortcut_set_edit_access($shortcut_set);
}
return FALSE;
}