Skip to content

Instantly share code, notes, and snippets.

@spotzero
Last active August 29, 2015 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save spotzero/d38ca9290b7954622cf5 to your computer and use it in GitHub Desktop.
Save spotzero/d38ca9290b7954622cf5 to your computer and use it in GitHub Desktop.
Connector module, gives hooks a chance patch
diff --git a/connector.module b/connector.module
index 4e20102..da7d430 100644
--- a/connector.module
+++ b/connector.module
@@ -427,6 +427,7 @@ function _connector_log_in($connector_name, $cid = NULL, $consumer = NULL, $acce
else {
//Log in user
$form_state['uid'] = $account->uid;
+ $form_state['connector access token'] = $access_token;
user_login_submit(array(), $form_state);
return TRUE;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment