function pay_user_cancel in Pay 7
Implements hook_user_cancel().
File
- ./
pay.module, line 97 - Pay module allows for accepting payments using pluggable payment backends.
Code
function pay_user_cancel($edit, $account, $method) {
// Deactivate any payment forms this user may have created.
db_update('pay_form')
->fields(array(
'status' => 0,
'uid' => 0,
))
->condition('uid', $account->uid)
->execute();
// Remove reference to this user's uid in transaction history.
db_update('pay_transaction')
->fields(array(
'uid' => 0,
))
->condition('uid', $account->uid)
->execute();
db_update('pay_activity')
->fields(array(
'uid' => 0,
))
->condition('uid', $account->uid)
->execute();
}