Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi.
I've just customized gauth_login, in order to add a role to Drupal users created with Google Sign In button.
Here is the patch.
I've only added a checkbox list in gauth_login admin form, to select one or more roles (if needed).
Then, when the new user is created, he is automatically granted selected roles.
And also a variable_del call in hook_uninstall.
Do you agree with it ?
Comment | File | Size | Author |
---|---|---|---|
#1 | gauth_login-add_permanent_roles_to_user_created_with_google_login-2112283-1.patch | 2.62 KB | OwilliwO |
Comments
Comment #1
OwilliwOOups.. Forgot to add patch file..
Comment #2
sadashiv CreditAttribution: sadashiv commentedHi @OwilliwO,
The patch seems to work fine. Thanks for contributing.
Thanks,
Sadashiv.