function lingotek_get_phase_templates in Lingotek Translation 6
2 calls to lingotek_get_phase_templates()
File
- ./
lingotek.api.inc, line 281
Code
function lingotek_get_phase_templates() {
global $_lingotek_client;
$options = array();
$options[1] = t("Translation Only");
$options[2] = t("Translation + 1 review");
$options[3] = t("Translation + 2 reviews");
$options[4] = t("Translation + 3 reviews");
if (!$_lingotek_client
->canLogIn()) {
return $options;
}
//Add custom phase templates:
$list_phase_templates = $_lingotek_client
->request("listPhaseTemplates");
if ($list_phase_templates->results == "success") {
foreach ($list_phase_templates->phaseTemplates as $phase_template) {
$options[$phase_template->id] = t($phase_template->name);
}
}
return $options;
}