function shortcut_link_access
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
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;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.