Skip to content

Commit 8542adc

Browse files
feat(formanswer): hook before generating targets
1 parent d8c7669 commit 8542adc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

inc/formanswer.class.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1081,6 +1081,8 @@ public function post_addItem() {
10811081
$this->sendNotification();
10821082
$formAnswer = clone $this;
10831083
if ($this->input['status'] == self::STATUS_ACCEPTED) {
1084+
Plugin::doHookFunction('formcreator_before_generate_target', $this);
1085+
10841086
if (!$this->generateTarget()) {
10851087
Session::addMessageAfterRedirect(__('Cannot generate targets!', 'formcreator'), true, ERROR);
10861088

0 commit comments

Comments
 (0)