function RulesReactionRule::access
File
-
includes/
rules.plugins.inc, line 469
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();
}