Actions

J1.5

Plugin/Events/Contact

From Joomla! Documentation

< J1.5:Plugin/Events
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