hook_perm implimentation

Jeff Burnz - March 7, 2009 - 01:30
Project:Edit term
Version:6.x-1.1
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

I added a hook_perm to allow users to use Edit Term without having to give away Administer Taxonomy - I'm using Taxonomy Delegate module and Edit Term compliments this nicely.

Any probs you might see with this, seems kosha from my end.

/**
* Implementation of hook_perm().
*/
function edit_term_perm() {
  return array('edit terms');
}

Then replaced "administer taxonomy" with "edit term" where requried.

Does create an additional step in setting up the module but does allow to dovetail nicely with Taxonomy Delegate.

 
 

Drupal is a registered trademark of Dries Buytaert.