Sending an email only when a particular node type is created

spamjim - May 14, 2008 - 21:26

I am stumped and would appreciate any pointers for this 5.7 installation. I might upgrade to v6.2 if it would make this easier.

I have a new content type called 'idea'. I'd like an email notification sent only when a new idea is posted. There seems to be no problem with the default action to send an email whenever any new content is created. I'd just like to narrow this action to act on one type of content only.

I have the following modules installed and enabled for this task:

Actions 5.x-2.4
Node Triggers 5.x-1.x-dev
Workflow 5.x-2.2
Workflow access 5.x-2.2

I also tried Workflow-ng but disabled & uninstalled it, thinking it was only making the matter more complicated.

I've looked at plenty of documentation but it seems to be off slightly for other versions of Drupal or the action/trigger/workflow modules. And I'm thrown further by the fact that actions are changing between Drupal 5 and 6.

Node Trigger module seems to be the magic bullet but I get an error when creating a new trigger:
Fatal error: Call to undefined function: actions_key_lookup() in /usr1/me/www/dev/sites/all/modules/nodetriggers/nodetriggers.module on line 439

To answer my own issue...

spamjim - May 21, 2008 - 21:32

To get away from the legacy Node Triggers module, I finally figured out how to use Workflow_NG, which allows the conditional of the node type to trigger the action. The documentation in the second link got the ball rolling.

http://drupal.org/project/workflow_ng

http://drupal.org/node/156288

 
 

Drupal is a registered trademark of Dries Buytaert.