Im using hybridauth to let users login from different social media websites … I send emails manually to some users with an link to edit specific nodes (for example http://example.com/node/444/edit?parma1=val1¶m2=val2). At that moment the user is automatically redirected to a page to choose a social media he want to login with. Im using hook_init for this :
function MYMODULE_init(){ if($node->type == 'type' && other conditions){ drupal_goto('link_to_hybridauth_login_page'); } }
Now I want that user to be automatically redirected to that link sent via email after success login via hybridauth ( I tried to add destination query inside drupal_goto but not working.)
how can I do this redirection ?
Thanks in advance.