You are here

function globallink_get_project_director_details in GlobalLink Connect for Drupal 7.5

Same name and namespace in other branches
  1. 7.7 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.

82 calls to globallink_get_project_director_details()
globallink_auto_receive in ./globallink.module
Automatically receives translated contents.
globallink_block_active_form_submit in globallink_block/globallink_block_active_submissions.inc
Handles submission of active block form.
globallink_block_active_form_validate in globallink_block/globallink_block_active_submissions.inc
Validates form actions for active block submissions.
globallink_block_cancel_submission in globallink_block/globallink_block.inc
Cancels block submission.
globallink_block_dashboard_form_submit in globallink_block/globallink_block_send.inc
Handles block form submission.

... See full list

File

./globallink_settings.inc, line 416

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');
  return $pd4;
}