function RulesReactionRule::removeEvent

Implements RulesTriggerableInterface::removeEvent().

Parameters

string $event_name: The name of the (configured) event to remove.

Return value

RulesTriggerableInterface The object instance itself, to allow chaining.

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;
}