From 2c3c1a93030bf62ccc2d4a3386b756f01b672d94 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Fri, 12 Mar 2010 15:56:30 +0000 Subject: - Patch #705306 by moshe weitzman: user_cancel_delete() method calls into a 'standard' user_delete_multiple() API. --- modules/profile/profile.module | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'modules/profile') diff --git a/modules/profile/profile.module b/modules/profile/profile.module index 39101fd6d..d55c0572c 100644 --- a/modules/profile/profile.module +++ b/modules/profile/profile.module @@ -233,14 +233,21 @@ function profile_user_insert(&$edit, $account, $category) { function profile_user_cancel(&$edit, $account, $method) { switch ($method) { case 'user_cancel_reassign': - case 'user_cancel_delete': db_delete('profile_value') ->condition('uid', $account->uid) ->execute(); - break; } } +/** + * Implements hook_user_delete(). + */ +function profile_user_delete($account) { + db_delete('profile_value') + ->condition('uid', $account->uid) + ->execute(); +} + /** * Implements hook_user_load(). */ @@ -621,4 +628,3 @@ function _profile_get_fields($category, $register = FALSE) { ->orderBy('weight', 'ASC') ->execute(); } - -- cgit v1.2.3