Source of file MemberProfilesSpamProtectionExtension.php
Size: 0,495 Bytes - Last Modified: 2021-12-23T10:38:40+00:00
/var/www/docs.ssmods.com/process/src/src/MemberProfilesSpamProtectionExtension.php
1234567891011121314151617181920212223242526272829 | <?php /** * Created by PhpStorm. * User: gordon * Date: 16/4/2561 * Time: 14:55 น. */ namespace Suilven\CommonFormsSpamProtection; use SilverStripe\Core\Extension; use SilverStripe\Forms\Form; class MemberProfilesSpamProtectionExtension extends Extension { /** * Enable spam protection for the member profile forms * * @param $form */ public function updateRegisterForm($form) { /** @var Form */ $form->enableSpamProtection(); } } |