logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

[drupal:dries] /database database.mysql database.pgsql updates.inc /modules: msg#00332

Subject: [drupal:dries] /database database.mysql database.pgsql updates.inc /modules block.module locale.module profile.module system.module user.module
User: dries     Branch: HEAD    Date: Sun, 27 Jun 2004 19:10:52 +0000

Modified files:
  /database database.mysql database.pgsql updates.inc
  /modules block.module locale.module profile.module system.module user.module

Log message:
  I refactored quite a bit of the user.module:
  
  $ diffstat user.patch
  database/database.mysql |    4
  database/database.pgsql |    2
  database/updates.inc    |   10 -
  modules/block.module    |   20 +-
  modules/locale.module   |    9
  modules/profile.module  |  108 +++++++----
  modules/system.module   |    8
  modules/user.module     |  456 
+++++++++++++++++++-----------------------------
  8 files changed, 289 insertions(+), 328 deletions(-)
  
  More functionality, less code.  Here is a list of the changes:
  
  - Some user API changes:
     + When $type is 'form', you have to return an associative array of groups. 
 In turn, each group is an array with a 'title', 'data' and 'weight'.
     + A new $type has been added, namely 'categories'.  User settings can be 
organized in categories.  Categories can be sorted, as can the groups within a 
category.  (Ordering 'categories' is somewhat broken due to a bug in the menu 
system.)
   
  - The 'my account > edit' page will use subtabs for each 'category'.  Read: 
you can break down the account settings into multiple subpages.
  
  - Profile module improvements:
     + Added support for private fields to the profile module!
     + Improved workflow of profile administration pages.
     + Improved the form descriptions.
  
  - Code improvements:
     + Unified user_edit() and user_admin_edit().
     + Unified and cleaned up the validation code.  Fixed some validation 
glitches too.

Links:
  
http://cvs.drupal.org/diff.php?path=drupal/database/database.mysql&old=1.132&new=1.133
  
http://cvs.drupal.org/diff.php?path=drupal/database/database.pgsql&old=1.69&new=1.70
  
http://cvs.drupal.org/diff.php?path=drupal/database/updates.inc&old=1.18&new=1.19
  
http://cvs.drupal.org/diff.php?path=drupal/modules/block.module&old=1.119&new=1.120
  
http://cvs.drupal.org/diff.php?path=drupal/modules/locale.module&old=1.101&new=1.102
  
http://cvs.drupal.org/diff.php?path=drupal/modules/profile.module&old=1.62&new=1.63
  
http://cvs.drupal.org/diff.php?path=drupal/modules/system.module&old=1.141&new=1.142
  
http://cvs.drupal.org/diff.php?path=drupal/modules/user.module&old=1.341&new=1.342

-- 
[ Drupal cvs list | http://list.drupal.org/ ]



<Prev in Thread] Current Thread [Next in Thread>