You are here

function site_disclaimer_user in Site Disclaimer 6

Implementation of hook_user().

File

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

Code

function site_disclaimer_user($op, &$edit, &$account, $category = NULL) {
  switch ($op) {
    case 'insert':
      if (isset($edit['I_agree'])) {
        $edit['site_disclaimer'] = $edit['I_agree'];
        unset($edit['I_agree']);
      }
      break;
  }
}