You are here

function linkedin_auth_user in LinkedIn Integration 6

Implementation of hook_user()

File

linkedin_auth/linkedin_auth.module, line 94
Implement LinkedIn Authentication service for user login

Code

function linkedin_auth_user($op, &$edit, &$account, $category = NULL) {
  switch ($op) {
    case 'view':
      if ($_SESSION['linkedin_not_linked'] == 1) {
        global $user;
        if ($user->uid == $account->uid) {
          unset($_SESSION['linkedin_not_linked']);
          drupal_goto('linkedin/token/' . $account->uid);
        }
      }
  }
}