function lingotek_add_vault_to_project in Lingotek Translation 6
Same name and namespace in other branches
- 7.7 lingotek.remote.inc \lingotek_add_vault_to_project()
- 7.2 lingotek.api.inc \lingotek_add_vault_to_project()
- 7.3 lingotek.api.inc \lingotek_add_vault_to_project()
- 7.4 lingotek.api.inc \lingotek_add_vault_to_project()
- 7.5 lingotek.remote.inc \lingotek_add_vault_to_project()
- 7.6 lingotek.remote.inc \lingotek_add_vault_to_project()
1 call to lingotek_add_vault_to_project()
File
- ./
lingotek.api.inc, line 140
Code
function lingotek_add_vault_to_project() {
global $_lingotek_client;
$vault_id = variable_get('lingotek_vault', '');
$project_id = variable_get('lingotek_project', '');
if ($vault_id != '' && $project_id != '') {
$param = array(
'project_id' => $project_id,
'index_id' => $vault_id,
);
$_lingotek_client
->request('addProjectTMVault', $param);
}
}