function user_get_role_name

7.x user.module user_get_role_name($rid)
6.x user.module user_get_role_name($rid)
4.x user.module user_get_role_name($rid)
5.x user.module user_get_role_name($rid)

Simple function to return the human-readable name for a role, by rid.

Parameters

unknown_type $rid:

1 call to user_get_role_name()
user_display_users in modules/user/user.module
Display our list of faculty/staff users in the system.

File

modules/user/user.module, line 1928

Code

function user_get_role_name($rid) {
  $name = db_result(db_query("SELECT name FROM roles WHERE rid = '?' ", $rid));
  return $name;
}