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
    1. rules_user_login
    2. rules_user_logout
    3. rules_entity_view
    4. rules_entity_presave
    5. rules_entity_delete
    6. rules_entity_insert
    7. rules_entity_update
  • Drupal\rules\Event\EntityEvent
  • Drupal\rules\Event\UserLoginEvent
  • Drupal\rules\Event\UserLogoutEvent

User interface changes

N/A

Comments

dmouse created an issue. See original summary.

dmouse’s picture

A 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

dmouse’s picture

Status: Active » Closed (won't fix)