14 lines
317 B
PHP
14 lines
317 B
PHP
<?php
|
|
|
|
class ContactformOverride extends Contactform
|
|
{
|
|
public function sendMessage()
|
|
{
|
|
//Module Eicaptcha : Check captcha before submit
|
|
Hook::exec('actionContactFormSubmitBefore');
|
|
if (!sizeof($this->context->controller->errors)) {
|
|
parent::sendMessage();
|
|
}
|
|
}
|
|
}
|