You are here

function globallink_get_project_director_details in GlobalLink Connect for Drupal 7.6

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

Gets project director details.

Return value

object The project director object.

89 calls to globallink_get_project_director_details()
globallink_auto_receive in ./globallink.module
Automatically receives translated contents.
globallink_beans_active_form_submit in globallink_beans/globallink_beans_active_submissions.inc
Handles submission of active beans form.
globallink_beans_active_form_validate in globallink_beans/globallink_beans_active_submissions.inc
Validates form actions for active beans submissions.
globallink_beans_cancel_submission in globallink_beans/globallink_beans.inc
Cancels beans submission.
globallink_beans_dashboard_form_submit in globallink_beans/globallink_beans_send.inc
Handles beans form submission.

... See full list

File

./globallink_settings.inc, line 430

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;
}