diff options
author | Dries Buytaert <dries@buytaert.net> | 2004-05-20 10:23:52 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2004-05-20 10:23:52 +0000 |
commit | fdb1fbfcedffaa5b563bd2ef3852fe3baab50cc1 (patch) | |
tree | 4d477928e693fdc73b0660317b63f6b0540b5e0d /modules/user.module | |
parent | d0090e69e67cdd213be259281cbb008bca0d4006 (diff) | |
download | brdo-fdb1fbfcedffaa5b563bd2ef3852fe3baab50cc1.tar.gz brdo-fdb1fbfcedffaa5b563bd2ef3852fe3baab50cc1.tar.bz2 |
- Simplified the 'anonymous poster settings' of the comment module and
made it possible to enforce a username/e-mail address. Based on
James Seng's work there are now 3 radio buttons:
( ) Anonymous users may not enter contact information
( ) Anonymous users may leave contact information
( ) Anonymous users must leave contact information
- Fixed a bug in the default theme_comment_view() function.
- Added permalinks for comments. Requested by Michael and Christina.
Maintainers of contributed themes might want to add permalinks too.
TODO:
- Fix the interaction design of the submission form: the page you are
directed to and the validation of the contact information.
- Changing the comment viewing options appears to be broken?
Diffstat (limited to 'modules/user.module')
-rw-r--r-- | modules/user.module | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/modules/user.module b/modules/user.module index 34003c959..af3025893 100644 --- a/modules/user.module +++ b/modules/user.module @@ -41,16 +41,14 @@ function user_load($array = array()) { $user = db_fetch_object($result); $user = drupal_unpack($user); - $user->roles = array(); + user_module_invoke("load", $array, $user); + $user->roles = array(); $result = db_query("SELECT r.rid, r.name FROM {role} r INNER JOIN {users_roles} ur ON ur.rid = r.rid WHERE ur.uid = %d", $user->uid); - while ($role = db_fetch_object($result)) { $user->roles[$role->rid] = $role->name; } - user_module_invoke("load", $array, $user); - return $user; } |