Rules Mastery 62 -- Adding an event (invoking event)
Channel: Johan Falk
Date: 2012-03-16

This screencast shows how to invoke a Rules event, to make it actually trigger reaction rules. This is usually done by the function rules_invoke_event(), which takes the event name as first parameter and the event variables as subsequent parameters.

An alternative way of doing this, particularly useful when you don't know the number of variables, is rules_invoke_event_by_args().

EXAMPLE CODE FOUND HERE: http://drupalbin.com/21016

(This video is a part of the training found at http://denver2012.drupal.org/content/rules-mastery.)