By mixersoft on
Where do I override the access controls for the Edit tab of my custom module/node type (i.e. type = MENU_LOCAL_TASK, title = 'Edit')?
I did not put it inside my node_menu() so it is being auto-generated elsewhere. I have also played with user access values but can't seem to find the permission that only allows access by role. And the strange thing is that some roles can't see the Edit tab, but I can't control it.
(Note: I built my custom node by copying and editing an existing .module file, but now I can't remember which one I used.)
Comments
use the node hooks
Use hook_perm to expose permissions then use hook_access to put some logic behind the access rules. It would look something like this.
http://humanopinion.org