Plugin/Events/Contact

From Joomla! Documentation

< Plugin‎ | Events
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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 an Exception object form submission will be terminated.

Parameters

  • contact A reference to the person who will receive the form.
  • data A reference to the data in the $_POST variable.

Return Value

None on success or Exception on failure.

Called in files

  • components/com_contact/controllers/contact.php

onSubmitContact[edit]

Description

This event is triggered after a contact form has been submitted. You can use this for sending additional emails etc.

Parameters

  • contact A reference to the person who will receive the form.
  • data A reference to the data in the $_POST variable.

Return Value

None. Called in files

  • components/com_contact/controllers/contact.php