mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 15:05:42 +00:00
MINOR: Added a few extension points to allow tapping into various areas
This commit is contained in:
parent
362a76aee0
commit
c036af79ab
@ -764,6 +764,8 @@ JS
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$this->extend('updateEmail', $email, $recipient, $emailData);
|
||||||
|
|
||||||
if($recipient->SendPlain) {
|
if($recipient->SendPlain) {
|
||||||
$body = strip_tags($recipient->EmailBody) . "\n ";
|
$body = strip_tags($recipient->EmailBody) . "\n ";
|
||||||
if(isset($emailData['Fields']) && !$recipient->HideFormData) {
|
if(isset($emailData['Fields']) && !$recipient->HideFormData) {
|
||||||
@ -871,6 +873,8 @@ class UserDefinedForm_EmailRecipient extends DataObject {
|
|||||||
$fields->insertAfter(new DropdownField('SendEmailToFieldID', _t('UserDefinedForm.ORSELECTAFIELDTOUSEASTO', '.. or Select a Field to use as the To Address'), $multiOptionFields, '', null, ""), 'EmailAddress');
|
$fields->insertAfter(new DropdownField('SendEmailToFieldID', _t('UserDefinedForm.ORSELECTAFIELDTOUSEASTO', '.. or Select a Field to use as the To Address'), $multiOptionFields, '', null, ""), 'EmailAddress');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$this->extend('updateCMSFields', $fields);
|
||||||
|
|
||||||
return $fields;
|
return $fields;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user