Skip to content

Commit

Permalink
feat: rename hook name
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnPAfr committed Jul 16, 2024
1 parent 583f448 commit e28963b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion contactform.php
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ public function getTemplateVarOrders()
*/
public function sendMessage()
{
Hook::exec('actionCaptchaValidation');
Hook::exec('actionSendMessageBefore');
$extension = ['.txt', '.rtf', '.doc', '.docx', '.pdf', '.zip', '.png', '.jpeg', '.gif', '.jpg', '.webp'];
$file_attachment = Tools::fileAttachment('fileUpload');
$message = trim(Tools::getValue('message'));
Expand Down
2 changes: 1 addition & 1 deletion upgrade/upgrade-4.4.1.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@
function upgrade_module_4_4_1($object)
{
return $object->registerHook('displayContactContent') &&
$object->registerHook('actionCaptchaValidation');
$object->registerHook('actionSendMessageBefore');
}

0 comments on commit e28963b

Please sign in to comment.