-
-
Save Greg-Boggs/b706a3feb0a3ad830cb9 to your computer and use it in GitHub Desktop.
Alter a campaign monitor form to include honey pot.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function tng_form_alter(&$form, &$form_state, $form_id) { | |
if ($form_id == 'campaignmonitor-subscribe-form') { | |
honeypot_add_form_protection($form, $form_state, array('honeypot', 'time_restriction')); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment