function shib_auth_error in Shibboleth Authentication 7.4
Same name and namespace in other branches
- 6.4 shib_auth.module \shib_auth_error()
 
Errors out.
Example usage:
if (something_bad_happens()) {
  return shib_auth_error("Something bad happened");
}EXCEPTION WORKAROUND for php4
Parameters
string $msg: Error message.
9 calls to shib_auth_error()
- shib_auth_check_identifier in ./
shib_auth.module  - Check user identifier.
 - shib_auth_custom_mail in ./
shib_auth.module  - User Data Customization function - MAIL.
 - shib_auth_custom_username in ./
shib_auth.module  - User Data Customization function - USERNAME.
 - shib_auth_get_rolename in ./
shib_auth.module  - Retrieves role name from role id using the role cache.
 - shib_auth_init in ./
shib_auth.module  - Creates a new user, if necessary, based on information from the handler.
 
File
- ./
shib_auth.module, line 119  - Drupal Shibboleth authentication module.
 
Code
function shib_auth_error($msg = '') {
  drupal_set_message(filter_xss(t("[Shibboleth authentication] %msg", array(
    '%msg' => $msg,
  ))), 'error');
}