From fdb1fbfcedffaa5b563bd2ef3852fe3baab50cc1 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Thu, 20 May 2004 10:23:52 +0000 Subject: - 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? --- modules/user.module | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'modules/user.module') 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; } -- cgit v1.2.3