function globallink_get_user_pdProjects in GlobalLink Connect for Drupal 7.7
2 calls to globallink_get_user_pdProjects()
- globallink_background_send in ./
globallink_background_jobs.inc - globallink_update_7710 in ./
globallink.install - Upgrade from 7.x to 7.7
File
- gl_ws/
gl_ws_common.inc, line 38
Code
function globallink_get_user_pdProjects($pd_obj) {
$proj_arr = array();
$connectorConfig = new PDConfig();
$connectorConfig->url = $pd_obj->url;
$connectorConfig->username = $pd_obj->username;
$connectorConfig->password = $pd_obj->password;
$connectorConfig->userAgent = $pd_obj->userAgent;
$glExchange = new GLExchange($connectorConfig);
$pdProjects = $glExchange
->getProjects();
if (isset($pdProjects) && is_array($pdProjects)) {
foreach ($pdProjects as $project) {
$proj_arr[$project->shortcode] = $project;
}
}
return $proj_arr;
}