![Drupal Tutorial](/drupal/images/drupal-mini-logo.jpg)
- Drupal Basics Tutorial
- Drupal - Home
- Drupal - Overview
- Drupal - Installation
- Drupal - Architecture
- Drupal - Main Menu
- Drupal - Blocks & Regions
- Drupal - Themes & Layouts
- Drupal - Front Page
- Drupal - Static Pages
- Drupal - Create Blog
- Drupal - Create Articles
- Drupal - Create Pages
- Drupal - Create Content
- Drupal - Modify Content
- Drupal - Delete Content
- Drupal - Publish Content
- Drupal - Menu Management
- Drupal - Taxonomies
- Drupal - Comments
- Drupal - User Management
- Drupal - Optimization
- Drupal - Site Backup
- Drupal - Site Upgrade
- Drupal - Announcements
- Drupal Advanced
- Drupal - URL Alias
- Drupal - Site Search
- Drupal - Error Handling
- Drupal - Multilingual Content
- Drupal - Triggers & Actions
- Drupal - Social Networking
- Drupal - Internationalization
- Drupal - Extensions
- Drupal - Default Modules
- Drupal - Pane Module
- Drupal - Book Module
- Drupal - Aggregator Module
- Drupal - Contact Module
- Drupal - Form Module
- Drupal - Poll Module
- Drupal - Site Security
- Drupal E-Commerce
- Drupal - Setup Shopping Cart
- Drupal - Create Products
- Drupal - Create Categories
- Drupal - Setup Taxes
- Drupal - Setup Discounts
- Drupal - Receive Donations
- Drupal - Setup Shipping
- Drupal - Setup Payments
- Drupal - Invoice Generation
- Drupal - Email Notifications
- Drupal - Order History
- Drupal Useful Resources
- Drupal - Questions and Answers
- Drupal - Quick Guide
- Drupal - Useful Resources
- Drupal - Discussion
Drupal - Triggers & Actions
In this chapter, we will learn about Triggers and Actions in Drupal. First let's look into Triggers.
It can be defined as changes happening within your site. The actions can be carried out either after creating a new content or any page.
Triggers
Following are the steps that will help you use triggers in Drupal.
Step 1 − First click Modules from the menu bar.
![Drupal Triggers and Actions](/drupal/images/drupal-triggers-and-actions/drupal-triggers-and-actions-step1.jpg)
Step 2 − When you click Modules, you get the following page.
![Drupal Triggers and Actions](/drupal/images/drupal-triggers-and-actions/drupal-triggers-and-actions-step2.jpg)
Here enable Trigger module. Then click Save Configuration at the bottom of the page.
Step 3 − Go back to the Trigger module and click Configure on the right side of the page as shown in the following image.
![Drupal Triggers and Actions](/drupal/images/drupal-triggers-and-actions/drupal-triggers-and-actions-step3.jpg)
Step 4 − When you click Configure, you get the following page.
![Drupal Triggers and Actions](/drupal/images/drupal-triggers-and-actions/drupal-triggers-and-actions-step4.jpg)
We have different tabs on the page that specify each trigger.
Comment Module − You can assign action to only those triggers relating to comment module.
Node Module − You can assign action to those triggers relating to Node module.
![Drupal Triggers and Actions](/drupal/images/drupal-triggers-and-actions/drupal-triggers-and-actions-step5.jpg)
System Module − You can assign action to only those triggers relating to System module.
![Drupal Triggers and Actions](/drupal/images/drupal-triggers-and-actions/drupal-triggers-and-actions-step6.jpg)
Taxonomy Module − You can trigger actions to the Taxonomy module.
![Drupal Triggers and Actions](/drupal/images/drupal-triggers-and-actions/drupal-triggers-and-actions-step7.jpg)
User Module − At last we have the user module, here actions must be assigned in User module.
![Drupal Triggers and Actions](/drupal/images/drupal-triggers-and-actions/drupal-triggers-and-actions-step8.jpg)
Actions
Tasks carried on a particular system object are called actions.
Step 1 − Click Configuration from the menu bar.
![Drupal Triggers and Actions](/drupal/images/drupal-triggers-and-actions/drupal-triggers-and-actions-step9.jpg)
Step 2 − Click on Actions from the system section.
![Drupal Triggers and Actions](/drupal/images/drupal-triggers-and-actions/drupal-triggers-and-actions-step10.jpg)
Step 3 − When you click Actions, you get the following page.
![Drupal Triggers and Actions](/drupal/images/drupal-triggers-and-actions/drupal-triggers-and-actions-step11.jpg)
Step 4 − Select any one action from the dropdown and click Create.
![Drupal Triggers and Actions](/drupal/images/drupal-triggers-and-actions/drupal-triggers-and-actions-step12.jpg)
Step 5 − When you choose an option and click Create, The following page appears.
![Drupal Triggers and Actions](/drupal/images/drupal-triggers-and-actions/drupal-triggers-and-actions-step13.jpg)
Following are the option fields present on the page −
Label − Give a name to your action
Recipient − Enter your email address
Subject − Enter a subject you want to add to the action
Message − Enter the message you want to send to the visitor when clicked on any action.
After filling all the details, click Save.
Step(6) − You can see that your action is added to the list.
![Drupal Triggers and Actions](/drupal/images/drupal-triggers-and-actions/drupal-triggers-and-actions-step14.jpg)
To Continue Learning Please Login