function vppr_access_term_delete in Vocabulary Permissions Per Role 7
Return delete access for a given term.
1 call to vppr_access_term_delete()
- vppr_form_taxonomy_form_term_alter in ./
vppr.module - Implements hook_form_FORM_ID_alter().
File
- ./
vppr.module, line 72 - Vocabulary Permissions Per Role
Code
function vppr_access_term_delete($term) {
if (user_access('administer taxonomy') || user_access('administer terms in all vocabularies') || user_access("delete terms in {$term->vid}") || user_access('administer ' . $term->vocabulary_machine_name . ' vocabulary terms')) {
return TRUE;
}
return FALSE;
}