Trigger: Assign actions to system events

Last modified: December 23, 2009 - 20:15

The Trigger module provides the ability to trigger actions on system events, such as when new content is added or when a user logs in.

These combinations of actions and events can perform useful tasks such as e-mailing an administrator when a user account is deleted, or automatically unpublishing comments with certain words in them. By default, there are five categories of events (Categories, Content, Comments, Cron, and Users), but more may be added by additional modules.

Developers can define new trigger events with hook_hook_info, and should see the handbook page on writing triggers for a detailed example. Developers should also read the handbook page on writing actions.

To get started, try these tutorials:

 
 

Drupal is a registered trademark of Dries Buytaert.