diff --git a/code/EditableSpamProtectionField.php b/code/EditableSpamProtectionField.php index ad82907..ef6d3bd 100644 --- a/code/EditableSpamProtectionField.php +++ b/code/EditableSpamProtectionField.php @@ -17,9 +17,19 @@ if(class_exists('EditableFormField')){ if($protector = SpamProtectorManager::get_spam_protector()) { if($protector) { $protector = new $protector(); + return $protector->getFormField($this->Name, $this->Title, null); } } + + return false; + } + + function getFieldValidationOptions() { + return new FieldSet(); + } + + function getRequired() { return false; }