Skip to content

Instantly share code, notes, and snippets.

@kotnik
Created August 11, 2013 09:55
Show Gist options
  • Save kotnik/6204246 to your computer and use it in GitHub Desktop.
Save kotnik/6204246 to your computer and use it in GitHub Desktop.
Honeypot trap to add in *_form_alter (Drupal 7).
// Add Honeypot protection.
if (module_exists('honeypot')) {
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