[development] changes to hook_nodeapi

Chris Johnson chris at tinpixel.com
Thu Aug 31 22:51:21 UTC 2006


Andrew Lee wrote:

> I want to reiterate what jvandyk <http://drupal.org/user/2375> said 
> about the patch,  "No. This is a bad idea. The hooks being removed are 
> at the data level, and are being replaced at the form submission level. 
> What this means is that if you want to work with nodes programmatically 
> you'll have to fake a form submission, which is a big pain. Remember, 
> through the web browser is only one way to create content. Content could 
> also be created by XML-RPC calls, by wrapping a legacy database, by 
> periodic file import, etc.
> 
> When you call node_save, data-related things like nodeapi insert happen. 
> These are not form-related. They're data-related.
> 
> This patch makes Drupal less flexible. I also think it's premature to be 
> thinking about this. After fapi 2.0 hits, we should think about it."

I'd have to say I agree with John VanDyk on this point.  This muddies Drupal's 
architecture, rather than improves it.


More information about the development mailing list