You are here

function forward_admin_settings_submit in Forward 6

Same name and namespace in other branches
  1. 7.3 forward.admin.inc \forward_admin_settings_submit()
  2. 7 forward.module \forward_admin_settings_submit()
  3. 7.2 forward.admin.inc \forward_admin_settings_submit()
1 string reference to 'forward_admin_settings_submit'
forward_admin_settings in ./forward.module
Administration Page

File

./forward.module, line 429

Code

function forward_admin_settings_submit($form, &$form_state) {
  $types = node_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']);
}