Since I answered first, let me say that, as usual, Larry's answer is better than mine.
- Ken
Tao,
I think that Moshe is not correct in this, since node module will
invoke hook_X where hook is defined by the (ill-named) 'module' field
for the node type, or 'node_content' in the case of GUI-defined types.
So, I do think yo need to define your own node type (even as a very
thin wrapper around the node.module functions) in order to be able to
have a custom hook_access().
-Peter
PS - http://drupal.org/node/206138
---------- Forwarded message ----------
From: Tao Starbow <starbow@citris-uc.org>
To: development@drupal.org
Date: Tue, 05 Feb 2008 10:23:23 -0800
Subject: Re: [development] allowing some users some days to write stories
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
Moshe Weitzman wrote:
> I think that you can just add a hook_access implementation in a custom
> module for GUI created content types. node.module does not do that for
> you, thankfully.