Rules Mastery

Training Details

Date: Monday, March 19, 2012
Session Time: 9:00am-6:00pm
Room: 212
Breakfast and Lunch will be provided.
Need more info? Check out the Training 101 page for more!

A document with links, descriptions, and a lot of useful things for this training is found at

During this course you will learn one of Drupal’s most important and most complex modules – Rules. Half the day will be spent on learning Rules configuration. We will start off with functionality provided by the Rules module itself, and expand this with Rules Scheduler and Views Bulk Operations. The afternoon will be spent on learning to write Rules extensions, providing your modules or particular sites with additional actions, conditions and events, which can then be used by other modules. We will finish the day by looking at how you also can provide Rules with new data types.

Who will gain the most from this course?

This course targets Drupal developers with both site building and coding skills. In particular, this course targets module developers who are interested in but haven’t yet used the Rules module – and want to learn how to tap into its power both from a site building and coding perspective.

What will you learn?

Rules site building:

  • Basic concepts of Rules: reaction rules, events, conditions, actions
  • How data is managed in Rules, including data types, data selection and the important “data comparison” condition and “set a data value” action
  • How to access field data in Rules
  • Managing multiple-value fields and other lists in Rules
  • Making more complex rules possible by managing Rules components
  • Using Rules components in Views Bulk Operations
  • Using Views Bulk Operations to load lists of data into Rules
  • Scheduling tasks with Rules Scheduler
  • Debugging Rules configuration

Rules coding:

  • The basics of coding for Rules: writing an action
  • Writing actions that provides new parameters and re-saves existing ones
  • Extending on the action concept: writing a condition
  • Exposing new events to Rules
  • Handle data in multi-step events
  • Invoking Rules components from code
  • Exposing entity properties to Rules
  • Providing new data types to Rules

What will you receive during the course?

Pre-recorded presentations will be available online, with creative commons license. (Presentations will still be held live during the training.)
Exercises will be available online, in form of text descriptions, screencasts, suggested solutions and features/code describing a suggested solution. Creative commons.

Pre-requisites for the course

To take this course you should have solid site building experience, including knowledge about entities, bundles, fields, and in particular entity reference fields. You should also have good skills in using Views, including contextual filters and relationships. On top of this, you also need at least basic Drupal coding skills – you should have written at least one or two modules (even if they were never released).

All participants must have their own local Drupal environment pre-installed, including some specified modules.

Log in to add this to your schedule
Johan Falk, Wolfgang Ziegler
Experience level: 


  • Cost (in combination w/conference admission): $350.00
  • Cost (w/o conference admission): $450.00
Colorado mountains