I'm working in a project what need link to the account of a registered user and logged their accounts from different social networks (twitter, facebook, google+, etc).
This patch link a twitter account to the user account currently logged in at the time, using the function twitter_signin_button (); to initiate the account registration.
I have added some calls to two hook functions: hook_pre_create_twitter_account and hook_load_twitter_account.
I hope I have done everything correctly, this is my first patch in Drupal xD
Regards
Comments
Comment #1
spesic commentedThis feature has not been implemented as of 7.x-3.1. I'm attaching a slightly more elegant solution.
Comment #2
juampynr commentedI think I am missing something. You can accomplish this by using the Sign with Twitter button from the twitter_signin submodule. It follows the next flow:
Could you guys tell me how does the above patch alters/extends this flow?
Comment #3
spesic commentedIt omits step 1. It allows us to link twitter account with existing Drupal account (if logged in already), instead of creating a new Drupal account all together.
Comment #4
dddave commentedComment #5
damienmckennaLets review the code and see what else can be done.