public function RulesEventSet::executeByArgs in Rules 7.2
Executes container with the given arguments.
Condition containers just return a boolean while action containers return the configured provided variables as an array of variables.
Overrides RulesContainerPlugin::executeByArgs
File
- includes/
rules.plugins.inc, line 833 - Contains plugin info and implementations not needed for rule evaluation.
Class
- RulesEventSet
- This class is used for caching the rules to be evaluated per event.
Code
public function executeByArgs($args = array()) {
rules_log('Reacting on event %label.', array(
'%label' => $this->info['label'],
), RulesLog::INFO, NULL, TRUE);
$state = $this
->setUpState($args);
module_invoke_all('rules_config_execute', $this);
$this
->evaluate($state);
$state
->cleanUp($this);
rules_log('Finished reacting on event %label.', array(
'%label' => $this->info['label'],
), RulesLog::INFO, NULL, FALSE);
}