Fetches a user role by role ID.
$rid: A string representing the role ID.
A fully-loaded role object if a role with the given ID exists, or FALSE otherwise.
function user_role_load($rid) {
return db_select('role', 'r')
->fields('r')
->condition('rid', $rid)
->execute()
->fetchObject();
}