You are here

function _permissions_lock_hook_roles in Permissions Lock 7

Helper function to generate a list for display purposes of all roles locked through a hook

1 call to _permissions_lock_hook_roles()
permissions_lock_settings_form in ./permissions_lock.module
Settings form to control which permissions and / or roles have to be locked

File

./permissions_lock.module, line 312
Lock permissions on the permissions administration pages for certain roles

Code

function _permissions_lock_hook_roles($hook_lock_roles) {
  $all_roles = user_roles();
  $ret = array();
  foreach ($hook_lock_roles as $rid) {
    $ret[$rid] = $all_roles[$rid];
  }
  return $ret;
}