function taxonomy_access_fix_permission in Taxonomy access fix 7
Same name and namespace in other branches
- 7.2 taxonomy_access_fix.module \taxonomy_access_fix_permission()
Implements hook_permission().
Adds 1 permission per vocabulary: `add terms to VOCABULARY_ID`.
File
- ./
taxonomy_access_fix.module, line 99 - This file contains all hooks and callbacks for extra/improved Taxonomy permissions.
Code
function taxonomy_access_fix_permission() {
$permissions = array();
foreach (taxonomy_get_vocabularies() as $vid => $vocabulary) {
$permissions['add terms in ' . $vid] = array(
'title' => t('Add terms in %vocabulary', array(
'%vocabulary' => $vocabulary->name,
)),
);
}
return $permissions;
}