Hook perm for more than one content type

Posted by Andrew on Stack Overflow See other posts from Stack Overflow or by Andrew
Published on 2010-06-11T21:16:51Z Indexed on 2010/06/11 21:22 UTC
Read the original article Hit count: 183

Filed under:
|
|
|
|

Drupal 6.x

I have this module that manages four different content types. For that matter, how do I define permission for each content within the same module? Is that even possible? I can't figure out how to define permission for each content type cuz hook_perm has to be named with module name and it doesn't have any argument(like hook_access $node) to return permission base on content type.

Any help would be highly appreciated.

© Stack Overflow or respective owner

Related posts about drupal

Related posts about types