You are here

function honeypot_admin_form_submit in Honeypot 7

Same name and namespace in other branches
  1. 6 honeypot.admin.inc \honeypot_admin_form_submit()

Honeypot admin form submit callback.

1 string reference to 'honeypot_admin_form_submit'
honeypot_admin_form in ./honeypot.admin.inc
Honeypot administration page.

File

./honeypot.admin.inc, line 211
Honeypot administration forms.

Code

function honeypot_admin_form_submit($form, &$form_state) {

  // Create CSS file for honeypot.
  honeypot_create_css($form_state['values']['honeypot_element_name']);

  // Clear the Honeypot form cache on submit.
  cache_clear_all('honeypot_protected_forms', 'cache');
}