updateForm($form, $before, $fieldsToSpamServiceMapping); } catch (Exception $e) { user_error("SpamProtectorManager::update_form(): '$protectorClass' is not correctly set up. " . $e, E_USER_WARNING); } if(!$check) return null; return $protector; } /** * Send Feedback to the Spam Protection. The level of feedback * will depend on the Protector class. * * @param DataObject The Object which you want to send feedback about. Must have a * SessionID field. * @param String Feedback on the $object usually 'spam' or 'ham' for non spam entries */ static function send_feedback($object, $feedback) { $protector = new self::$spam_protector(); return $protector->sendFeedback($object, $feedback); } } ?>