You are here

function taxonomy_permissions_module_implements_alter in Taxonomy Permissions 7

Implements hook_module_implements_alter().

File

./taxonomy_permissions.module, line 14
taxonomy_permissions.module

Code

function taxonomy_permissions_module_implements_alter(&$implementations, $hook) {

  // Remove taxonomy.module's permissions because we supply them.
  if ($hook == 'permission') {
    if (taxonomy_permissions_disabling()) {
      unset($implementations['taxonomy_permissions']);
    }
    else {
      unset($implementations['taxonomy']);
    }
  }
}