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 views_bulk_operations module causes errors in the flag module because it fails to specify triggers in the actions returned by views_bulk_operations_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 the info functions in each of the files in the actions subdirectory.
Remaining tasks
Will attach my patch but needs review.
Comment | File | Size | Author |
---|---|---|---|
#5 | views_bulk_operations-add_triggers_in_actions-1817978-5.patch | 825 bytes | ofry |
Comments
Comment #1
samalone CreditAttribution: samalone commentedMy proposed patch is attached.
Comment #2
bojanz CreditAttribution: bojanz commentedCommitted, thanks!
Comment #4
ofry CreditAttribution: ofry commentedAgain same bug in actions views_bulk_operations_delete_revision and views_bulk_operations_user_cancel_action.
Comment #5
ofry CreditAttribution: ofry commentedThere is my patch.
Comment #6
ofry CreditAttribution: ofry commentedComment #7
ofry CreditAttribution: ofry commentedComment #8
bojanz CreditAttribution: bojanz commentedAdded the missing line to book actions as well, and committed.