Plugin/Events/Contact: Difference between revisions
From Joomla! Documentation
Readd updated page |
m →onValidateContact: corrected path, fixed typo |
||
| Line 5: | Line 5: | ||
This event is triggered after a contact form has been submitted. | This event is triggered after a contact form has been submitted. | ||
An example use case would be validating a captcha. If you return | An example use case would be validating a captcha. If you return an Exception object form submission will be terminated. | ||
'''Parameters''' | '''Parameters''' | ||
| Line 17: | Line 17: | ||
'''Called in files''' | '''Called in files''' | ||
*<tt>components/com_contact/ | *<tt>components/com_contact/controllers/contact.php</tt> | ||
== onSubmitContact == | == onSubmitContact == | ||
Revision as of 15:15, 10 January 2019
Contact events are triggered during the contact form submitting process.
onValidateContact
Description
This event is triggered after a contact form has been submitted. An example use case would be validating a captcha. If you return an Exception object form submission will be terminated.
Parameters
contactA reference to the person who will receive the form.dataA reference to the data in the $_POST variable.
Return Value
None on success or Exception on failure.
Called in files
- components/com_contact/controllers/contact.php
onSubmitContact
Description
This event is triggered after a contact form has been submitted. You can use this for sending additional mails etc.
Parameters
contactA reference to the person who will receive the form.dataA reference to the data in the $_POST variable.
Return Value
None. Called in files
- components/com_contact/controller.php