You are here

function taxonomy_permissions_permission_name in Taxonomy Permissions 7

Make up our permission machine name for a vocabulary.

Parameters

object $vocabulary:

Return value

string

4 calls to taxonomy_permissions_permission_name()
taxonomy_permissions_field_access in ./taxonomy_permissions.module
Implements hook_field_access().
taxonomy_permissions_query_term_access_alter in ./taxonomy_permissions.module
Implements hook_query_term_access_alter().
taxonomy_permissions_taxonomy_vocabulary_delete in ./taxonomy_permissions.module
Implements hook_taxonomy_vocabulary_delete().
taxonomy_permissions_taxonomy_vocabulary_insert in ./taxonomy_permissions.module
Implements hook_taxonomy_vocabulary_insert().

File

./taxonomy_permissions.module, line 32
taxonomy_permissions.module

Code

function taxonomy_permissions_permission_name($vocabulary) {
  return 'view terms in ' . $vocabulary->machine_name;
}