10 lines
251 B
PHP
10 lines
251 B
PHP
<?php
|
|
class ContactformOverride extends Contactform
|
|
{
|
|
public function sendMessage() {
|
|
Hook::exec('actionContactFormSubmitBefore');
|
|
if ( !sizeof($this->context->controller->errors)) {
|
|
parent::sendMessage();
|
|
}
|
|
}
|
|
} |