List Info

Thread: Change in status




Change in status
user name
2006-09-30 19:42:00
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,

--
Dan Ziemecki
Philosopher. Curmudgeon. Nerd.

Change in status
user name
2006-09-30 20:26:31
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
Change in status
user name
2006-09-30 23:18:40
Worked like a charm.  Thanks, Moshe.

--
Dan Ziemecki
Philosopher. Curmudgeon. Nerd.

On 9/30/06, Moshe Weitzman < weitzmantejasa.com"> weitzmantejasa.com> wrote:
Dan Ziemecki wrote:
>; When a node is submitted, it's current status is sent, but not it's
> previous
&gt; status.&nbsp; As such, I can not perform actions on newly published nodes, since
> I can't tell if it's state has changed.&nbsp; Am I correct in my understanding,
> or is there a hook I'm missing.
>
> Thanks,
&gt;

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

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )