API Enable comments to save spam status

This commit is contained in:
Damian Mooyman 2015-03-23 17:22:13 +13:00
parent ae391bcfb2
commit c40d120b0d
1 changed files with 1 additions and 0 deletions

View File

@ -10,6 +10,7 @@ class CommentSpamProtection extends Extension {
public function alterCommentForm(&$form) {
$form->enableSpamProtection(array(
'name' => 'IsSpam',
'mapping' => array(
'Name' => 'authorName',
'Email' => 'authorEmail',