6 Feb
2008
6 Feb
'08
7:33 a.m.
My experience is that if you want hook_access, you must define the node type in your module. Once defined that way, you can configure the node type with Drupal's UI, and add CCK fields. There's been talk about an "access" op for hook_nodeapi, but I don't know what happened allong those lines. On Tuesday 05 February 2008, Tao Starbow wrote:
Has anyone successfully done this, adding a hook_access for a node type created through the GUI (in Drupal 5)? I tried this a week or two ago and couldn't get it working, so I would love to see an example of the right way to do it.
-tao