function hook_drupalauth_attributes_alter in DrupalAuth for SimpleSAMLphp 7
This hook provides ability to alter user attributes.
Parameters
array $attributes: Array of attributes that are defined in "SSP_PATH/config/authsources.php".
object $user: User object.
File
- ./
drupalauth4ssp.api.php, line 21 - Hooks provided by the DrupalAuth for simpleSAMLphp.
Code
function hook_drupalauth_attributes_alter(&$attributes, &$user) {
$attributes['my_attribute'] = 'value';
}