You are here

function forward_admin_settings_submit in Forward 7

Same name and namespace in other branches
  1. 6 forward.module \forward_admin_settings_submit()
  2. 7.3 forward.admin.inc \forward_admin_settings_submit()
  3. 7.2 forward.admin.inc \forward_admin_settings_submit()

@todo Please document this function.

See also

http://drupal.org/node/1354

1 string reference to 'forward_admin_settings_submit'
forward_admin_settings in ./forward.module
Administration Page

File

./forward.module, line 455

Code

function forward_admin_settings_submit($form, &$form_state) {
  $types = node_type_get_types();
  foreach ($types as $type => $info) {
    if (!empty($form_state['values']['forward_display_types'][$type])) {
      variable_set('forward_display_' . $type, TRUE);
    }
    else {
      variable_set('forward_display_' . $type, FALSE);
    }
  }
  unset($form_state['values']['forward_display_types']);
}