Closed (fixed)
Project:
Flag
Version:
7.x-3.x-dev
Component:
Flag core
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
14 Jan 2013 at 09:39 UTC
Updated:
5 Feb 2013 at 11:20 UTC
Jump to comment: Most recent file
Our hook_mail() defines an email for 'over_threshold', but I don't see this string anywhere else in the module.
Some digging in the older branches & the issue queue may be required to see when this was supported and when it was removed (or whether it was even removed by accident!)
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | flag-remove-hook-mail-1888074-2.patch | 513 bytes | alexweber |
Comments
Comment #1
giorgio79 commentedRules can provide this, so looks unnecessary. :)
Comment #2
alexweber commentedConfirming that the only other occurrence of even the word "mail" in the entire module is for the "send mail" action which seems to be unrelated.
Simple patch attached to remove this unused hook.
Comment #3
joachim commentedThanks for checking it's not used.
A 'git log -S'over_threshold'' shows this in the 6x2x branch:
The first commit adds a drupal_mail() with that key; the second commit removes it. I am not sure why #298846: Improve Actions2 Support removes it, but it does, so no point keeping the hook_mail().
Committed the patch. Thanks!