[development] Change in status

Dan Ziemecki dan at ziemecki.com
Sat Sep 30 23:18:40 UTC 2006


Worked like a charm.  Thanks, Moshe.

-- 
Dan Ziemecki
Philosopher. Curmudgeon. Nerd.

On 9/30/06, Moshe Weitzman <weitzman at tejasa.com> wrote:
>
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/development/attachments/20060930/d2448076/attachment.htm


More information about the development mailing list