function RulesReactionRule::removeEvent

Implements RulesTriggerableInterface::removeEvent().

Overrides RulesTriggerableInterface::removeEvent

File

includes/rules.plugins.inc, line 407

Class

RulesReactionRule
Represents rules getting triggered by events.

Code

public function removeEvent($event) {
    if (($id = array_search($event, $this->events)) !== FALSE) {
        unset($this->events[$id]);
    }
    return $this;
}