You are here

function nat_settings_form_submit in Node Auto Term [NAT] 7.2

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

Process NAT settings form submissions.

File

./nat.admin.inc, line 61
NAT module administrative forms.

Code

function nat_settings_form_submit($form, &$form_state) {
  $form_values = $form_state['values'];
  $nat_config = _nat_variable_get();
  $nat_config['types'] = $form_values['types'];
  $nat_config['delete'] = array_filter($form_values['delete']);
  variable_set('nat_config', $nat_config);
  drupal_set_message(t('Configuration settings saved. If new node types have been associated with NAT, ensure that their fields have been linked as necessary via the <a href="!fields-url">Fields</a> tab.', array(
    '!fields-url' => url('admin/structure/nat/fields'),
  )));
}