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:

File

modules/user/user.module, line 2819

Code

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