[development] allowing some users some days to write stories

Ken Rickard agentrickard at gmail.com
Wed Feb 6 00:02:15 UTC 2008


Since I answered first, let me say that, as usual, Larry's answer is better
than mine.

- Ken

On Feb 5, 2008 3:02 PM, Peter Wolanin <pwolanin at gmail.com> wrote:

> 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 at citris-uc.org>
> To: development at 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.
>



-- 
-- 
--------------------------------------------------------------
DON'T MISS EARTH'S LARGEST GATHERING OF DRUPAL PROFESSIONALS!
Drupalcon Boston 2008 · March 3-6, 2008
Learn more at http://boston2008.drupalcon.org
Affordable sponsorship packages available
--------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/development/attachments/20080205/6728f8fc/attachment.htm 


More information about the development mailing list