Enhancement: added an extension point to UserDefinedForm.finished

This commit is contained in:
Juan van den Anker 2017-04-21 11:35:37 +12:00
parent 3e9a271310
commit 7983a7f119
1 changed files with 8 additions and 4 deletions

View File

@ -885,11 +885,15 @@ JS
Session::clear('FormProcessed');
}
$data = array(
'Submission' => $submission,
'Link' => $referrer
);
$this->extend('updateReceivedFormSubmissionData', $data);
return $this->customise(array(
'Content' => $this->customise(array(
'Submission' => $submission,
'Link' => $referrer
))->renderWith('ReceivedFormSubmission'),
'Content' => $this->customise($data)->renderWith('ReceivedFormSubmission'),
'Form' => '',
));
}