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.
Anytime a vote is opened, closed, scheduled, or the schedule changed, this should be logged with watchdog().
Comment | File | Size | Author |
---|---|---|---|
#5 | election-2626714-5.patch | 4.77 KB | pjcdawkins |
#4 | election-2626714-4.patch | 3.03 KB | pjcdawkins |
#2 | election-log_vote_open_close-2626714-2-D7.patch | 1.58 KB | Liam Morland |
Comments
Comment #2
Liam MorlandComment #3
pjcdawkins CreditAttribution: pjcdawkins commentedThis should be in hooks, to accommodate when an election might be updated outside of that form.
Comment #4
pjcdawkins CreditAttribution: pjcdawkins commentedComment tweak
Comment #5
pjcdawkins CreditAttribution: pjcdawkins commentedClearer schedule summary and moving the key part of the message a bit earlier (so it's visible on the admin/reports/dblog overview)
Comment #6
pjcdawkins CreditAttribution: pjcdawkins commentedCommitted
Comment #8
Liam MorlandThanks very much.
Comment #9
pjcdawkins CreditAttribution: pjcdawkins commentedI should mention that you can do this sort of thing via hook_entity_update() in a custom module, or via Rules.
Still, this seemed like a valuable security feature.
Comment #11
pjcdawkins CreditAttribution: pjcdawkins commented