diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-01-08 08:42:13 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-01-08 08:42:13 +0000 |
commit | 9a32ca468a320bec9769ed3c29c50b5a1f4459b1 (patch) | |
tree | 1986a66b2cdb4ca7df540a19427605ef905e9b8d /modules/trigger | |
parent | 1eb5be733ab7df65ffa1713c6c5dbba1558547ff (diff) | |
download | brdo-9a32ca468a320bec9769ed3c29c50b5a1f4459b1.tar.gz brdo-9a32ca468a320bec9769ed3c29c50b5a1f4459b1.tar.bz2 |
#8 by sun and most of #drupal: Users can now cancel their accounts. Fixing the 8th issue, almost 8 years later, on January 8th, after working 8 days full-time on it. GREAT WORK :D
Diffstat (limited to 'modules/trigger')
-rw-r--r-- | modules/trigger/trigger.module | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/modules/trigger/trigger.module b/modules/trigger/trigger.module index 59f280962..bc78d2323 100644 --- a/modules/trigger/trigger.module +++ b/modules/trigger/trigger.module @@ -441,10 +441,15 @@ function trigger_user_update(&$edit, &$account, $category) { } /** - * Implementation of hook_user_delete(). - */ -function trigger_user_delete(&$edit, &$account, $category) { - _trigger_user('delete', $edit, $account, $category); + * Implementation of hook_user_cancel(). + */ +function trigger_user_cancel(&$edit, &$account, $method) { + switch ($method) { + case 'user_cancel_reassign': + case 'user_cancel_delete': + _trigger_user('delete', $edit, $account, $method); + break; + } } /** |