You are here

function merci_rro_role_name_from_rid in MERCI (Manage Equipment Reservations, Checkout and Inventory) 6

4 calls to merci_rro_role_name_from_rid()
merci_rro_delete_submit in modules/merci_rro/merci_rro.admin.inc
merci_rro_new_submit in modules/merci_rro/merci_rro.admin.inc
merci_rro_override_delete in modules/merci_rro/merci_rro.admin.inc
theme_merci_rro_override in modules/merci_rro/merci_rro.module
Theme an override object

File

modules/merci_rro/merci_rro.module, line 133
Hooks and utility functions for MERCI Role Rule Override

Code

function merci_rro_role_name_from_rid($rid, $cache = TRUE) {
  static $roles;
  if (!isset($roles) || !$cache) {
    $roles = user_roles();
  }

  // if
  return $roles[$rid];
}