Actions

J1.5

Difference between revisions of "Plugin/Events/Contact"

From Joomla! Documentation

< J1.5:Plugin/Events
m (moved Reference:Contact Events for Plugin System to Plugin events/Contact: Moved page for consistency)
m (Wilsonge moved page Plugin/Events/Contact to J1.5:Plugin/Events/Contact without leaving a redirect)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[Category:Development]]
 
[[Category:Plugins]]
 
===Overview===
 
 
Contact events are triggered during the contact form submitting process.  
 
Contact events are triggered during the contact form submitting process.  
  
=== onValidateContact ===
+
== 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 ===
+
== 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 08:41, 27 August 2013

Replacement filing cabinet.png
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.

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 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

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