Access callback for deleting a shortcut set.
$shortcut_set: The shortcut set to be deleted.
TRUE if the current user has access to delete shortcut sets and this is not the site-wide default set; FALSE otherwise.
function shortcut_set_delete_access($shortcut_set) {
// Only admins can delete sets.
if (!user_access('administer shortcuts')) {
return FALSE;
}
// Never let the default shortcut set be deleted.
if ($shortcut_set->set_name == SHORTCUT_DEFAULT_SET_NAME) {
return FALSE;
}
return TRUE;
}