function shortcut_link_access

shortcut_link_access($menu_link)

Access callback for editing a link in a shortcut set.

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;
}

© 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_link_access/7.x