function globallink_create_target_info in GlobalLink Connect for Drupal 7.6
Same name and namespace in other branches
- 7.5 gl_ws/gl_ws_send_translations.inc \globallink_create_target_info()
1 call to globallink_create_target_info()
File
- gl_ws/
gl_ws_send_translations.inc, line 159
Code
function globallink_create_target_info($locale, &$globallink) {
$target_info = new TargetInfo();
$target_info->targetLocale = $locale;
$date_requested = new Date();
$date_requested->date = $globallink->dueDate;
$date_requested->critical = FALSE;
$target_info->dateRequested = $date_requested;
$target_info->requestedDueDate = $globallink->dueDate;
$priority = new Priority();
$priority->value = $globallink->submissionPriority;
$target_info->priority = $priority;
$target_info->encoding = 'UTF-8';
return $target_info;
}