Skip to content

Instantly share code, notes, and snippets.

Created November 10, 2014 17:40
Show Gist options
  • Save anonymous/eda2facf47642acc2446 to your computer and use it in GitHub Desktop.
Save anonymous/eda2facf47642acc2446 to your computer and use it in GitHub Desktop.
function THEMENAMEHERE_form_alter(&$form, &$form_state, $form_id) {
($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