function vppr_access_term_edit in Vocabulary Permissions Per Role 7
Return edit access for a given term.
1 string reference to 'vppr_access_term_edit'
- vppr_menu_alter in ./
vppr.module - Implements hook_menu_alter().
File
- ./
vppr.module, line 62 - Vocabulary Permissions Per Role
Code
function vppr_access_term_edit($term) {
if (taxonomy_term_edit_access($term) || user_access('administer terms in all vocabularies') || user_access('administer ' . $term->vocabulary_machine_name . ' vocabulary terms')) {
return TRUE;
}
return FALSE;
}