function _referral_get_user_roles in User Referral 5
Same name and namespace in other branches
- 6 referral.module \_referral_get_user_roles()
- 7 referral.module \_referral_get_user_roles()
3 calls to _referral_get_user_roles()
File
- ./
referral.module, line 564
Code
function _referral_get_user_roles($uid) {
$data = array();
$result = db_query('SELECT r.name FROM {role} r INNER JOIN {users_roles} ur USING (rid)
WHERE ur.uid = %d', $uid);
while ($row = db_fetch_object($result)) {
$data[] = $row->name;
}
return $data;
}