function spamspan_admin_page::submit in SpamSpan filter 7
.
File
- ./
spamspan_admin_page.php, line 91 - This module implements the spamspan technique (http://www.spamspan.com ) for hiding email addresses from spambots.
Class
- spamspan_admin_page
- @file This module implements the spamspan technique (http://www.spamspan.com ) for hiding email addresses from spambots.
Code
function submit($form, &$form_state) {
// Store the submitted value in $form_state['storage']:
$form_state['storage'][$this->test_field] = $form_state['values'][$this->test_field];
$defaults = $this->parent
->defaults();
foreach ($defaults as $field => $value) {
if (isset($form_state['values'][$field])) {
$form_state['storage'][$field] = $form_state['values'][$field];
}
}
// Force the form to rebuild to save the stored value.
$form_state['rebuild'] = TRUE;
}