You are here

function _uc_roles_get_name in Ubercart 6.2

Same name and namespace in other branches
  1. 7.3 uc_roles/uc_roles.module \_uc_roles_get_name()

Gets role name.

Parameters

$rid: The Drupal role id number.

Return value

A string containing the name of the role, returns FALSE if rid is invalid.

10 calls to _uc_roles_get_name()
uc_roles_action_order_renew in uc_roles/uc_roles.ca.inc
Renews an orders product roles.
uc_roles_delete in uc_roles/uc_roles.module
Deletes an expiration using user id or user id and rid.
uc_roles_deletion_form in uc_roles/uc_roles.admin.inc
Form builder for role expirations.
uc_roles_expiration in uc_roles/uc_roles.admin.inc
Menu callback for viewing expirations.
uc_roles_feature_form_submit in uc_roles/uc_roles.module
Submission handler for uc_roles_feature_form().

... See full list

File

uc_roles/uc_roles.module, line 1071

Code

function _uc_roles_get_name($rid) {
  $roles = user_roles(TRUE);
  return !is_null($roles[$rid]) ? $roles[$rid] : FALSE;
}