[support] custom trigger

Marty Landman mlandman at face2interface.com
Wed Dec 1 14:26:27 UTC 2010


Thanks Ryan and Don for explaining my options. Now I can report back 
to my client and explain to them. :)

Marty

At 08:47 PM 11/30/2010, Don wrote:
>If you can't use the rules module, you might be able to turn off
>automatic emails and then put some code in a hook_nodeapi on save.
>You would send email on insert of a new product type node.
>
>-Don-
>
>
>On 11/30/2010 8:29 PM, Marty Landman wrote:
> > I'm working on a site using Ubercart. Users register and then may
> > list an item for sale - after creating the item as a new node.
> >
> > There's a requirement that the user be sent an email when their item
> > is created on the site but the only trigger - either Drupal or UC I
> > can find that will help me here is "After saving a new post". This
> > works well because the only nodes these users can save are their for
> > sale items; the only problem is that they also create a node - their
> > user profile - when they register for the site. Which generates what
> > turns out to be an ugly looking email to each new user, because it's
> > tailored for a new item listing.
> >
> > Ideally if I could insert a bit of PHP code into the action it'd be
> > easy to tease out the triggers I want to act on and those I don't.
> > But at this point I'm totally stuck as to how I can proceed.
> >
> > Marty
> >
>
>--
>[ Drupal support list | http://lists.drupal.org/ ]



More information about the support mailing list