Plugin/Events/Contact
From Joomla! Documentation
(New page: Category:Development Category:Plugins ===Overview=== Contact events are triggered during the contact form submitting process. === onValidateContact === '''Description''' This ev...) |
m (moved Plugin events/Contact to Plugin/Events/Contact: Reogarnizacao of contents) |
||
| (2 intermediate revisions by one user not shown) | |||
| Line 1: | Line 1: | ||
| − | |||
| − | |||
| − | |||
Contact events are triggered during the contact form submitting process. | Contact events are triggered during the contact form submitting process. | ||
| − | + | == onValidateContact == | |
'''Description''' | '''Description''' | ||
| Line 12: | Line 9: | ||
'''Parameters''' | '''Parameters''' | ||
| − | *contact A reference to the person who will receive the form. | + | *<code>contact</code> A reference to the person who will receive the form. |
| − | *post A reference to the $_POST variable. | + | *<code>post</code> A reference to the $_POST variable. |
'''Return Value''' | '''Return Value''' | ||
| Line 21: | Line 18: | ||
'''Called in files''' | '''Called in files''' | ||
| − | *components/com_contact/controller.php | + | *<tt>components/com_contact/controller.php</tt> |
| − | + | == onSubmitContact == | |
'''Description''' | '''Description''' | ||
| Line 30: | Line 27: | ||
'''Parameters''' | '''Parameters''' | ||
| − | *contact A reference to the person who will receive the form. | + | *<code>contact</code> A reference to the person who will receive the form. |
| − | *post A reference to the $_POST variable. | + | *<code>post</code> A reference to the $_POST variable. |
'''Return Value''' | '''Return Value''' | ||
| Line 39: | Line 36: | ||
'''Called in files''' | '''Called in files''' | ||
| − | *components/com_contact/controller.php | + | *<tt>components/com_contact/controller.php</tt> |
| + | <noinclude>[[Category:Plugin Development]][[Category:Specifications]]</noinclude> | ||
Latest revision as of 04:29, 2 September 2011
Contact events are triggered during the contact form submitting process.
[edit] 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 a JError, JException or Exception object form submission will be terminated.
Parameters
contactA reference to the person who will receive the form.postA reference to the $_POST variable.
Return Value
None or object. See description for details.
Called in files
- components/com_contact/controller.php
[edit] 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.postA reference to the $_POST variable.
Return Value
None.
Called in files
- components/com_contact/controller.php