Created
August 11, 2013 09:55
-
-
Save kotnik/6204246 to your computer and use it in GitHub Desktop.
Honeypot trap to add in *_form_alter (Drupal 7).
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
// 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