Access callback for editing a link in a shortcut set.
function shortcut_link_access($menu_link) {
// The link must belong to a shortcut set that the current user has access
// to edit.
$set_name = str_replace('shortcut-', '', $menu_link['menu_name']);
if ($shortcut_set = shortcut_set_load($set_name)) {
return shortcut_set_edit_access($shortcut_set);
}
return FALSE;
}