function MODULE_profile_fields_alter in OAuth2 Login 8
Same name and namespace in other branches
- 7.2 oauth2_user/oauth2_user.api.php \MODULE_profile_fields_alter()
Implements hook_profile_fields_alter().
File
- oauth2_user/
oauth2_user.api.php, line 40 - Functions that can be used by other modules.
Code
function MODULE_profile_fields_alter(&$profile_fileds) {
// Add these additional fields to the user profile.
// These extra fields can be defined by the server
// on hook_oauth2_loginprovider_userprofile_alter().
$profile_fields += [
'projects',
'permissions',
];
}