You are here

function forward_admin_settings_submit in Forward 7.2

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 forward.module \forward_admin_settings_submit()

Additional submit handler for administrative settings to handle per-node-type display settings

1 string reference to 'forward_admin_settings_submit'
forward_admin_settings in ./forward.admin.inc
Callback function for administration menu item

File

./forward.admin.inc, line 454
Administrative page for Forward module

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']);
}