Plugin/Events/Contact

From Joomla! Documentation
< Plugin | Events(Difference between revisions)
Jump to: navigation, search
(New page: Category:Development Category:Plugins ===Overview=== Contact events are triggered during the contact form submitting process. === onValidateContact === '''Description''' This ev...)
 
m (moved Reference:Contact Events for Plugin System to Plugin events/Contact: Moved page for consistency)

Revision as of 08:34, 14 July 2011

Overview

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
Personal tools
Namespaces

Variants
Actions
Navigation
Joomla! Sites
Toolbox