function nat_settings_form_submit in Node Auto Term [NAT] 6.2
Same name and namespace in other branches
- 5 nat.module \nat_settings_form_submit()
- 6 nat.admin.inc \nat_settings_form_submit()
- 7.2 nat.admin.inc \nat_settings_form_submit()
- 7 nat.admin.inc \nat_settings_form_submit()
Process NAT settings form submissions.
File
- ./
nat.admin.inc, line 72 - NAT module administrative forms.
Code
function nat_settings_form_submit($form, &$form_state) {
$form_values = $form_state['values'];
unset($form_values['form_id'], $form_values['form_build_id'], $form_values['submit'], $form_values['op'], $form_values['form_token']);
$form_values['body'] = array_filter($form_values['body']);
$form_values['delete'] = array_filter($form_values['delete']);
$form_values['node_links'] = array_filter($form_values['node_links']);
$form_values['related'] = array_filter($form_values['related']);
variable_set('nat_config', $form_values);
drupal_set_message(t('Configuration settings saved.'));
}