I've written a module that uses a CCK content type as it's node type.
It all works great (and the site is actually live), but we just noticed that the standard node permissions (create/delete/edit) don't appear for the content type.

I even tried to create custom permissions with hook_perm, but found that hook_access never fires.

I must be missing something to do with using modules and content types together in this way.
Perhaps you can point me in the right direction.

Thanks.

Comments

justageek’s picture

So you created a content type with CCK, what then are you doing with your module?

dariusa’s picture

From the sounds of it, I would say you aren't utilizing the _perm hook correctly with the _menu hook, but its hard to say without seeing what is causing the issue.

Check out the _menu and _perm hook api's for more information:

http://api.drupal.org/api/function/hook_menu/6

http://api.drupal.org/api/function/hook_perm/6

If you can, post the code as it'll be easier to see what is going on.