You are here

function site_disclaimer_admin_settings_submit in Site Disclaimer 7

Same name and namespace in other branches
  1. 6 site_disclaimer.admin.inc \site_disclaimer_admin_settings_submit()

Submit the site_disclaimer_admin_settings form.

See also

site_disclaimer_admin_settings()

1 string reference to 'site_disclaimer_admin_settings_submit'
site_disclaimer_admin_settings in ./site_disclaimer.admin.inc
Menu callback; show settings form.

File

./site_disclaimer.admin.inc, line 335
Administration settings for Site Disclaimer module.

Code

function site_disclaimer_admin_settings_submit($form, &$form_state) {
  if ($form_state['#site_disclaimer_mode'] = 'node_id') {
    $nid = $form_state['values']['site_disclaimer_node_id'];
  }
  else {
    $nid = $form_state['#site_disclaimer_nid'];
  }

  // Rebuild allowed paths
  _site_disclaimer_prep_allowed_paths($nid);
}