You are here

function certificate_user in Certificate 6.2

Same name and namespace in other branches
  1. 6 certificate.module \certificate_user()

Implements hook_user().

Clean up after user deletion.

File

./certificate.module, line 635
Certificate module.

Code

function certificate_user($op, &$edit, &$account, $category = NULL) {
  if ($op == 'delete') {
    $sql = "delete from {certificate_snapshots} where uid = %d";
    db_query($sql, $account->uid);
  }
}