Conditions | 1 |
Paths | 1 |
Total Lines | 17 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
15 | public function alterCommentForm(&$form) |
||
16 | { |
||
17 | $form->enableSpamProtection(array( |
||
18 | 'name' => 'IsSpam', |
||
19 | 'mapping' => array( |
||
20 | 'Name' => 'authorName', |
||
21 | 'Email' => 'authorEmail', |
||
22 | 'URL' => 'authorUrl', |
||
23 | 'Comment' => 'body', |
||
24 | 'ReturnURL' => 'contextUrl' |
||
25 | ), |
||
26 | 'checks' => array( |
||
27 | 'spam', |
||
28 | 'profanity' |
||
29 | ) |
||
30 | )); |
||
31 | } |
||
32 | } |
||
33 |