function lingotek_add_vault_to_project in Lingotek Translation 7.7
Same name and namespace in other branches
- 6 lingotek.api.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()
Add the current vault to the current project. It doesn't hurt to call this more than once.
2 calls to lingotek_add_vault_to_project()
- lingotek_admin_additional_translation_settings_form in ./
lingotek.admin.inc - Additional translation form
- lingotek_admin_profile_form in ./
lingotek.admin.inc - Content defaults Form
File
- ./
lingotek.remote.inc, line 609
Code
function lingotek_add_vault_to_project() {
$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,
);
LingotekApi::instance()
->request('addProjectTMVault', $param);
}
}