Rules without the UI

Click here to watch 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.

Previous session at Drupal Camp North West 2012: Writing Rules in Code

Further reading:

Schedule info
Time slot: 
Tuesday, May 21 - 09:00am-10:00am
C 123 - Trellon
Session Info
Coding + Development
Experience level: 


David is a great teacher. Should be full of great tips and info.

I always says that Rules Rules, I hope to hear this session