function taxonomy_access_role_delete_access in Taxonomy Access Control 7
Access callback for role deletion form.
1 string reference to 'taxonomy_access_role_delete_access'
- taxonomy_access_menu in ./
taxonomy_access.module - Implements hook_menu().
File
- ./
taxonomy_access.module, line 209 - Allows administrators to specify access control for taxonomy categories.
Code
function taxonomy_access_role_delete_access($rid) {
if (!user_access('administer permissions')) {
return FALSE;
}
if ($rid == DRUPAL_ANONYMOUS_RID || $rid == DRUPAL_AUTHENTICATED_RID) {
return FALSE;
}
$roles = _taxonomy_access_user_roles();
if (empty($roles[$rid])) {
return FALSE;
}
return TRUE;
}