function site_disclaimer_confirm_submit in Site Disclaimer 7
Same name and namespace in other branches
- 6 site_disclaimer.pages.inc \site_disclaimer_confirm_submit()
Submit handler for site_disclaimer_confirm()
File
- ./
site_disclaimer.pages.inc, line 57 - Page callbacks for the Site Disclaimer module.
Code
function site_disclaimer_confirm_submit($form, &$form_state) {
$user = user_uid_optional_load();
$edit = array(
'data' => array(
'site_disclaimer' => $form_state['values']['I_agree'],
),
);
user_save($user, $edit);
}