function globallink_login in GlobalLink Connect for Drupal 7.6
Same name and namespace in other branches
- 7.5 gl_ws/gl_ws_common.inc \globallink_login()
11 calls to globallink_login()
- globallink_cancel_pd_submission in gl_ws/
gl_ws_common.inc - globallink_cancel_select_documents in gl_ws/
gl_ws_common.inc - globallink_download_target_resource in gl_ws/
gl_ws_receive_translations.inc - globallink_get_all_ready_translations_details_from_pd in gl_ws/
gl_ws_receive_translations.inc - globallink_get_completed_targets_by_doc in gl_ws/
gl_ws_receive_translations.inc
File
- gl_ws/
gl_ws_common.inc, line 208
Code
function globallink_login($session_service, $username, $password) {
$login = new login();
$login->username = $username;
$login->password = $password;
$login_response = $session_service
->login($login);
$token = $login_response->return;
return $token;
}