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

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',