function _simplesaml_auth_user_has_authmap in simpleSAMLphp Authentication 7.3
Same name and namespace in other branches
- 7.2 simplesamlphp_auth.module \_simplesaml_auth_user_has_authmap()
See if the user has an authmap record for simplesamlphp_auth.
1 call to _simplesaml_auth_user_has_authmap()
- simplesamlphp_auth_form_alter in ./
simplesamlphp_auth.module - Implements hook_form_alter().
File
- ./
simplesamlphp_auth.module, line 683 - simpleSAMLphp authentication module for Drupal.
Code
function _simplesaml_auth_user_has_authmap($authname) {
$authmaps = user_get_authmaps($authname);
$return = 0;
if (is_array($authmaps)) {
$return = in_array('simplesamlphp_auth', array_keys($authmaps));
}
return $return;
}