Difference between revisions of "Plugin/Events/Contact"
From Joomla! Documentation
< J1.5:Plugin/Events
(New page: Category:Development Category:Plugins ===Overview=== Contact events are triggered during the contact form submitting process. === onValidateContact === '''Description''' This ev...) |
m (Wilsonge moved page Plugin/Events/Contact to J1.5:Plugin/Events/Contact without leaving a redirect) |
||
(3 intermediate revisions by 2 users 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> |
Revision as of 08:41, 27 August 2013
The "J1.5" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.
Contact events are triggered during the contact form submitting process.
onValidateContact[edit]
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
contact
A reference to the person who will receive the form.post
A reference to the $_POST variable.
Return Value
None or object. See description for details.
Called in files
- components/com_contact/controller.php
onSubmitContact[edit]
Description
This event is triggered after a contact form has been submitted. You can use this for sending additional mails etc.
Parameters
contact
A reference to the person who will receive the form.post
A reference to the $_POST variable.
Return Value
None.
Called in files
- components/com_contact/controller.php