You are here

function nat_settings_form_submit in Node Auto Term [NAT] 5

Same name and namespace in other branches
  1. 6.2 nat.admin.inc \nat_settings_form_submit()
  2. 6 nat.admin.inc \nat_settings_form_submit()
  3. 7.2 nat.admin.inc \nat_settings_form_submit()
  4. 7 nat.admin.inc \nat_settings_form_submit()

Process NAT settings form submissions.

File

./nat.module, line 258
NAT - node auto term - is a helper module that automatically creates a term using the same title as a node.

Code

function nat_settings_form_submit($form_id, $form_values) {
  unset($form_values['form_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.'));
}