[development] Change in status

Moshe Weitzman weitzman at tejasa.com
Sat Sep 30 20:26:31 UTC 2006


Dan Ziemecki wrote:
> When a node is submitted, it's current status is sent, but not it's 
> previous
> status.  As such, I can not perform actions on newly published nodes, since
> I can't tell if it's state has changed.  Am I correct in my understanding,
> or is there a hook I'm missing.
> 
> Thanks,
> 

true. you could add a hook_nodeapi(submit) which put the old status in a 
#value form element. then it is available to you at subsequent hooks


More information about the development mailing list