function site_disclaimer_admin_settings_submit in Site Disclaimer 6
Same name and namespace in other branches
- 7 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 338 - Administration settings for Site Disclaimer module.
Code
function site_disclaimer_admin_settings_submit($form, &$form_state) {
if ($form_state['storage']['#site_disclaimer_mode'] = 'node_id') {
$nid = $form_state['values']['site_disclaimer_node_id'];
}
else {
$nid = $form_state['storage']['#site_disclaimer_nid'];
}
// From D6 AHAH helper module:
unset($form_state['storage']);
// Rebuild allowed paths
_site_disclaimer_prep_allowed_paths($nid);
}