You are here

function legal_save_accept in Legal 6.8

Same name and namespace in other branches
  1. 8 legal.module \legal_save_accept()
  2. 5 legal.module \legal_save_accept()
  3. 6.7 legal.module \legal_save_accept()
  4. 7.2 legal.module \legal_save_accept()
  5. 7 legal.module \legal_save_accept()
  6. 2.0.x legal.module \legal_save_accept()
2 calls to legal_save_accept()
legal_login_submit in ./legal.module
legal_user in ./legal.module
Implementation of hook_user().

File

./legal.module, line 607
Displays Terms & Conditions, and makes sure they are accepted before registration is accepted.

Code

function legal_save_accept($version, $revision, $language, $uid) {
  db_query("INSERT INTO {legal_accepted} (version, revision, language, uid, accepted) VALUES (%d, %d, '%s', %d, %d)", $version, $revision, $language, $uid, time());
}