/[drupal]/drupal/modules/profile/profile.module
ViewVC logotype

Diff of /drupal/modules/profile/profile.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.248 by dries, Tue Dec 16 23:57:33 2008 UTC revision 1.249 by webchick, Thu Jan 8 08:42:13 2009 UTC
# Line 1  Line 1 
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
# Line 259  function profile_user_categories(&$edit, Line 259  function profile_user_categories(&$edit,
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) {

Legend:
Removed from v.1.248  
changed lines
  Added in v.1.249

  ViewVC Help
Powered by ViewVC 1.1.3