I believe this module is in desperate need of a trigger, at the point of sending the email.
I've added a trigger firing, and the code for the trigger and one action - sending a notice e-mail.
(the action is mainly the same as the system.module action, with a few changes to accommodate the custom fields)
The trigger: in anonymous_contact.module, line 125:
//Fire the trigger
module_invoke_all('anonymous_contact', 'user_contact_form_sent', $account, $values);
In the attached file:
- Trigger and action definitions: hook_hook_info(), hook_trigger_name(), hook_action_info();
- The action is configurable, so: its form, validation and submittion;
- The action itself;
- Addition to hook_mail(), another switch-case for the new mailing action
- AmitK
This has been implemented at Jerusalem Photos
| Comment | File | Size | Author |
|---|---|---|---|
| anonymous_contact_trigger.patch.txt | 4.68 KB | amitkeret |