mirror of
https://github.com/silverstripe/silverstripe-spamprotection.git
synced 2024-10-22 14:05:59 +02:00
API Enable comments to save spam status
This commit is contained in:
parent
ae391bcfb2
commit
c40d120b0d
@ -10,6 +10,7 @@ class CommentSpamProtection extends Extension {
|
|||||||
|
|
||||||
public function alterCommentForm(&$form) {
|
public function alterCommentForm(&$form) {
|
||||||
$form->enableSpamProtection(array(
|
$form->enableSpamProtection(array(
|
||||||
|
'name' => 'IsSpam',
|
||||||
'mapping' => array(
|
'mapping' => array(
|
||||||
'Name' => 'authorName',
|
'Name' => 'authorName',
|
||||||
'Email' => 'authorEmail',
|
'Email' => 'authorEmail',
|
||||||
|
Loading…
Reference in New Issue
Block a user