J1.5

Difference between revisions of "Plugin/Events/Contact"

From Joomla! Documentation

< J1.5:Plugin/Events
(Adjusted layout)
m (moved Plugin events/Contact to Plugin/Events/Contact: Reogarnizacao of contents)
(No difference)

Revision as of 04:29, 2 September 2011

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