function spamicide_admin_form_submit in Spamicide 6
Same name and namespace in other branches
- 5 spamicide.module \spamicide_admin_form_submit()
- 7 spamicide.module \spamicide_admin_form_submit()
Implementation of hook_form_submit
_values
Parameters
$form:
File
- ./
spamicide.module, line 200 - This module provides yet another tool to eliminate spam.
Code
function spamicide_admin_form_submit($form, &$form_state) {
variable_set('spamicide_administration_mode', $form_state['values']['spamicide_administration_mode']);
foreach ($form_state['values']['spamicide_forms'] as $spamicide_form_id => $data) {
if ($data['form_field'] != 'feed_me') {
_spamicide_set_css_file($data['form_field']);
}
db_query("UPDATE {spamicide} SET enabled = '%s', form_field = '%s' WHERE form_id = '%s'", $data['enabled'], $data['form_field'], $spamicide_form_id);
}
variable_set('spamicide_log_attempts', $form_state['values']['spamicide_log_attempts']);
drupal_set_message(t('The Spamicide settings were saved.'), 'status');
}