public function BeanEntityAPIController::invoke in Bean (for Drupal 7) 7
Overridden to add Rules integration back in.
Overrides EntityAPIControllerExportable::invoke
File
- includes/
bean.core.inc, line 515 - Bean classes and plugin interface
Class
Code
public function invoke($hook, $entity) {
parent::invoke($hook, $entity);
// Invoke rules.
if (module_exists('rules')) {
rules_invoke_event($this->entityType . '_' . $hook, $entity);
}
}