DrupalCon Portland 2013: RULES WITHOUT THE UI
Following the theme of the track this session will show you how to use the full power of the Rules module without the UI. Presented by David Kitchen, Commerce Guys
Rules is a great module for creating event driven actions through the UI and is used throughout the Drupal Commerce modules.
Rules created through the UI can be exported using Features and reused on multiple sites, but if you want to include a rule with you module that can be dynamically altered depending on the sites configuration this doesn't always work.
In this session I will give a brief introduction to coding for rules including writing your modules events, conditions, and actions. I will then explain how to use hook_default_rules_configuration() and hook_default_rules_configuration_alter() to include rules with your module without the need for Features.
Rules is a great module for creating event driven actions through the UI and is used throughout the Drupal Commerce modules.
Rules created through the UI can be exported using Features and reused on multiple sites, but if you want to include a rule with you module that can be dynamically altered depending on the sites configuration this doesn't always work.
In this session I will give a brief introduction to coding for rules including writing your modules events, conditions, and actions. I will then explain how to use hook_default_rules_configuration() and hook_default_rules_configuration_alter() to include rules with your module without the need for Features.