Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
As a developer, all the dispatched events by Rules would be useful to develop other business logic separate from the Rules.
Proposed resolution
Separate this logic in a new module and define it like a rules dependency:
-
rules.module
- rules_user_login
- rules_user_logout
- rules_entity_view
- rules_entity_presave
- rules_entity_delete
- rules_entity_insert
- rules_entity_update
- Drupal\rules\Event\EntityEvent
- Drupal\rules\Event\UserLoginEvent
- Drupal\rules\Event\UserLogoutEvent
User interface changes
N/A
Comments
Comment #2
dmouseA friend (jmolivas) shared me this module, I think this module would be a nice replacement to delete a bit of code from Rules and therefore less code to maintain
https://www.drupal.org/project/hook_event_dispatcher
Comment #3
dmouse