You are here

function site_disclaimer_user_presave in Site Disclaimer 7

Implements hook_user_presave().

File

./site_disclaimer.module, line 180
This module adds Site Disclaimer to the registration page.

Code

function site_disclaimer_user_presave(&$edit, $account, $category) {
  if (isset($edit['I_agree'])) {
    $edit['data']['site_disclaimer'] = $edit['I_agree'];
    unset($edit['I_agree']);
  }
}