You are here

function globallink_get_project_director_details in GlobalLink Connect for Drupal 7.7

Same name and namespace in other branches
  1. 7.5 globallink_settings.inc \globallink_get_project_director_details()
  2. 7.6 globallink_settings.inc \globallink_get_project_director_details()

Gets project director details.

Return value

object The project director object.

10 calls to globallink_get_project_director_details()
globallink_all_active_form_submit in ./globallink_workbench_all_active_submissions.inc
Handles submission of active entity form.
globallink_auto_receive in ./globallink.module
Automatically receives translated contents.
globallink_content_preview_content in ./globallink_workbench_all_active_submissions.inc
Helper function
globallink_create_submission_form_submit in ./globallink_send_translations.inc
Handles GlobalLink form submission.
globallink_create_submission_form_validate in ./globallink_send_translations.inc
Validates form actions for GlobalLink submissions.

... See full list

File

./globallink_settings.inc, line 462

Code

function globallink_get_project_director_details() {
  $pd4 = new ProjectDirector();
  $url = strrev(variable_get('globallink_pd_url', ''));
  if (ord($url) == 47) {
    $url = substr($url, 1);
  }
  $r_url = strrev($url);
  $pd4->url = $r_url;
  $pd4->username = variable_get('globallink_pd_username', '');
  $pd4->password = variable_get('globallink_pd_password', '');
  $pd4->projectShortCode = variable_get('globallink_pd_projectid', '');
  $pd4->submissionPrefix = variable_get('globallink_pd_submissionprefix', '');
  $pd4->classifier = variable_get('globallink_pd_classifier', 'XML');
  $pd4->maxTargetCount = variable_get('globallink_pd_max_target', '99999');
  $pd4->userAgent = variable_get('globallink_unique_identifier', $_SERVER['SERVER_NAME']);
  return $pd4;
}