/[drupal]/drupal/modules/user/user.install
ViewVC logotype

Diff of /drupal/modules/user/user.install

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

revision 1.15 by webchick, Thu Nov 20 06:56:17 2008 UTC revision 1.16 by webchick, Thu Jan 8 08:42:13 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: user.install,v 1.14 2008/11/15 13:01:11 dries Exp $  // $Id: user.install,v 1.15 2008/11/20 06:56:17 webchick Exp $
3    
4  /**  /**
5   * Implementation of hook_schema().   * Implementation of hook_schema().
# Line 360  function user_update_7002(&$sandbox) { Line 360  function user_update_7002(&$sandbox) {
360  }  }
361    
362  /**  /**
363     * Update user settings for cancelling user accounts.
364     *
365     * Prior to 7.x, users were not able to cancel their accounts. When
366     * administrators deleted an account, all contents were assigned to uid 0,
367     * which is the same as the 'user_cancel_reassign' method now.
368     */
369    function user_update_7003() {
370      $ret = array();
371      // Set the default account cancellation method.
372      variable_set('user_cancel_method', 'user_cancel_reassign');
373      // Re-assign notification setting.
374      if ($setting = variable_get('user_mail_status_deleted_notify', FALSE)) {
375        variable_set('user_mail_status_canceled_notify', $setting);
376        variable_del('user_mail_status_deleted_notify');
377      }
378      // Re-assign "Account deleted" mail strings to "Account canceled" mail.
379      if ($setting = variable_get('user_mail_status_deleted_subject', FALSE)) {
380        variable_set('user_mail_status_canceled_subject', $setting);
381        variable_del('user_mail_status_deleted_subject');
382      }
383      if ($setting = variable_get('user_mail_status_deleted_body', FALSE)) {
384        variable_set('user_mail_status_canceled_body', $setting);
385        variable_del('user_mail_status_deleted_body');
386      }
387      return $ret;
388    }
389    
390    /**
391   * @} End of "defgroup user-updates-6.x-to-7.x"   * @} End of "defgroup user-updates-6.x-to-7.x"
392   * The next series of updates should start at 8000.   * The next series of updates should start at 8000.
393   */   */

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16

  ViewVC Help
Powered by ViewVC 1.1.3