function autofill_settings_form_submit in Autofill 6
Submit handler for settings form.
1 string reference to 'autofill_settings_form_submit'
- autofill_form in ./
autofill.admin.inc - Implementation of Autofill settings form.
File
- ./
autofill.admin.inc, line 107 - Adminstrative page callbacks for Autofill
Code
function autofill_settings_form_submit($form, &$form_state) {
variable_set('autofill_colour_default', $form_state['values']['autofill_colour_default']);
variable_set('autofill_colour_active', $form_state['values']['autofill_colour_active']);
$fields = $form_state['values']['fields'];
foreach ($fields as $key => $field) {
if (empty($field['id'])) {
unset($fields[$key]);
}
}
variable_set('autofill_id_field_combos', $fields);
drupal_set_message(t('Your changes have been saved.'));
}