? return_rid_only.patch Index: role_weights.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/role_weights/role_weights.module,v retrieving revision 1.7 diff -u -F^f -r1.7 role_weights.module --- role_weights.module 6 Jun 2006 17:40:33 -0000 1.7 +++ role_weights.module 29 Jun 2006 13:55:37 -0000 @@ -88,7 +88,7 @@ function role_weights_get_weight($role_i * @param $roles * A role array containing a users roles - $rid -> $role_name * @return - * A role array containing the single, 'highest' role + * A role id defining the users' single, 'highest' role */ function role_weights_get_highest($roles) { $role_weights = _role_weights_get_weights(); @@ -97,7 +97,7 @@ function role_weights_get_highest($roles // run through $roles, returning FIRST role matched foreach ($role_weights as $rid => $weight) { if (array_key_exists($rid, $roles)) { - return array('rid' => $rid, 'name' => $roles[$rid]); + return $rid; } }