| 1 |
<?php |
<?php |
| 2 |
// $Id: profile.module,v 1.247 2008/12/05 12:50:28 dries Exp $ |
// $Id: profile.module,v 1.248 2008/12/16 23:57:33 dries Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 259 |
} |
} |
| 260 |
|
|
| 261 |
/** |
/** |
| 262 |
* Implementation of hook_user_delete(). |
* Implementation of hook_user_cancel(). |
| 263 |
*/ |
*/ |
| 264 |
function profile_user_delete(&$edit, &$user, $category = NULL) { |
function profile_user_cancel(&$edit, &$account, $method) { |
| 265 |
db_query('DELETE FROM {profile_value} WHERE uid = %d', $user->uid); |
switch ($method) { |
| 266 |
|
case 'user_cancel_reassign': |
| 267 |
|
case 'user_cancel_delete': |
| 268 |
|
db_delete('profile_value')->condition('uid', $account->uid)->execute(); |
| 269 |
|
break; |
| 270 |
|
} |
| 271 |
} |
} |
| 272 |
|
|
| 273 |
function profile_load_profile(&$user) { |
function profile_load_profile(&$user) { |