You are here

public function RulesReactionRule::access in Rules 7.2

File

includes/rules.plugins.inc, line 469
Contains plugin info and implementations not needed for rule evaluation.

Class

RulesReactionRule
Represents rules getting triggered by events.

Code

public function access() {
  foreach ($this->events as $event_name) {
    $event_info = rules_get_event_info($event_name);
    if (!empty($event_info['access callback']) && !call_user_func($event_info['access callback'], 'event', $event_info['name'])) {
      return FALSE;
    }
  }
  return parent::access();
}