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
The mimemail module causes errors in the flag module because it fails to specify triggers in mimemail_rules_action_info. According to the documentation for hook_action_info, the 'triggers' key is required. See this comment from the author of the flag module saying that he does not consider this to be a bug in that module.
Proposed resolution
Add 'triggers' => array('any') to mimemail_rules_action_info.
Remaining tasks
Will attach my patch but needs testing.
Comment | File | Size | Author |
---|---|---|---|
#1 | mimemail-action-triggers-1817898-1.patch | 698 bytes | samalone |
Comments
Comment #1
samalone CreditAttribution: samalone commentedMy proposed patch is attached.
Comment #2
sgabe CreditAttribution: sgabe commentedThe hook_action_info() implementation in Mime Mail is right, see in the repository. I think this was triggered and fixed by Pathauto in #1356786: Notice: Undefined index: triggers in flag_node->get_valid_actions() (line 1334 of /hsphere/local/home/...../sites/all/modules/fl.