function lingotek_get_vaults in Lingotek Translation 6
1 call to lingotek_get_vaults()
File
- ./
lingotek.api.inc, line 341
Code
function lingotek_get_vaults() {
global $_lingotek_client;
$options = array();
if (!$_lingotek_client
->isLoggedIn()) {
return $options;
}
$list_TM_vaults = $_lingotek_client
->request("listTMVaults");
if ($list_TM_vaults->results == "success") {
foreach ($list_TM_vaults->personalVaults as $vault) {
$options["Personal Vaults"][$vault->id] = t($vault->name);
}
foreach ($list_TM_vaults->publicVaults as $vault) {
$options["Public Vaults"][$vault->id] = t($vault->name);
}
}
return $options;
}