private function LdapAuthorizationConsumerDrupalRole::getDrupalRoleByName in Lightweight Directory Access Protocol (LDAP) 7
2 calls to LdapAuthorizationConsumerDrupalRole::getDrupalRoleByName()
- LdapAuthorizationConsumerDrupalRole::grantSingleAuthorization in ldap_authorization/
ldap_authorization_drupal_role/ LdapAuthorizationConsumerRole.class.php - extends grantSingleAuthorization()
- LdapAuthorizationConsumerDrupalRole::revokeSingleAuthorization in ldap_authorization/
ldap_authorization_drupal_role/ LdapAuthorizationConsumerRole.class.php
File
- ldap_authorization/
ldap_authorization_drupal_role/ LdapAuthorizationConsumerRole.class.php, line 207
Class
Code
private function getDrupalRoleByName($role_name) {
$role_name_lowercase = drupal_strtolower($role_name);
return isset($this->drupalRolesByName[$role_name_lowercase]) ? $this->drupalRolesByName[$role_name_lowercase] : NULL;
}