function vppr_access_vocabulary_terms in Vocabulary Permissions Per Role 7
VPPR's access callback for terms list.
1 string reference to 'vppr_access_vocabulary_terms'
- vppr_menu_alter in ./
vppr.module - Implements hook_menu_alter().
File
- ./
vppr.module, line 52 - Vocabulary Permissions Per Role
Code
function vppr_access_vocabulary_terms($vocabulary) {
if (user_access('administer taxonomy') || user_access('administer terms in all vocabularies') || user_access('administer ' . $vocabulary->machine_name . ' vocabulary terms')) {
return TRUE;
}
return FALSE;
}