Since I answered first, let me say that, as usual, Larry&#39;s answer is better than mine.<br><br>- Ken<br><br><div class="gmail_quote">On Feb 5, 2008 3:02 PM, Peter Wolanin &lt;<a href="mailto:pwolanin@gmail.com">pwolanin@gmail.com</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Tao,<br><br>I think that Moshe is not correct in this, since node module will<br>invoke hook_X where hook is defined by the (ill-named) &#39;module&#39; field<br>
for the node type, or &#39;node_content&#39; in the case of GUI-defined types.<br>&nbsp;So, I do think yo need to define your own node type (even as a very<br>thin wrapper around the node.module functions) in order to be able to<br>
have a custom hook_access().<br><font color="#888888"><br>-Peter<br></font><br>PS - <a href="http://drupal.org/node/206138" target="_blank">http://drupal.org/node/206138</a><br><div><div></div><div class="Wj3C7c"><br>---------- Forwarded message ----------<br>
From: Tao Starbow &lt;<a href="mailto:starbow@citris-uc.org">starbow@citris-uc.org</a>&gt;<br>To: <a href="mailto:development@drupal.org">development@drupal.org</a><br>Date: Tue, 05 Feb 2008 10:23:23 -0800<br>Subject: Re: [development] allowing some users some days to write stories<br>
Has anyone successfully done this, adding a hook_access for a node type<br>created through the GUI (in Drupal 5)? &nbsp;I tried this a week or two ago<br>and couldn&#39;t get it working, so I would love to see an example of the<br>
right way to do it.<br><br>-tao<br><br>Moshe Weitzman wrote:<br>&gt; I think that you can just add a hook_access implementation in a custom<br>&gt; module for GUI created content types. node.module does not do that for<br>
&gt; you, thankfully.<br></div></div></blockquote></div><br><br clear="all"><br>-- <br>-- <br>--------------------------------------------------------------<br>DON&#39;T MISS EARTH&#39;S LARGEST GATHERING OF DRUPAL PROFESSIONALS!<br>
Drupalcon Boston 2008 · March 3-6, 2008<br>Learn more at <a href="http://boston2008.drupalcon.org">http://boston2008.drupalcon.org</a><br>Affordable sponsorship packages available<br>--------------------------------------------------------------