You are here

function lingotek_add_vault in Lingotek Translation 7.2

Same name and namespace in other branches
  1. 6 lingotek.api.inc \lingotek_add_vault()
  2. 7.7 lingotek.remote.inc \lingotek_add_vault()
  3. 7.3 lingotek.api.inc \lingotek_add_vault()
  4. 7.4 lingotek.api.inc \lingotek_add_vault()
  5. 7.5 lingotek.remote.inc \lingotek_add_vault()
  6. 7.6 lingotek.remote.inc \lingotek_add_vault()
1 call to lingotek_add_vault()
lingotek_admin_form in ./lingotek.admin.inc
Form constructor for the administration form.

File

./lingotek.api.inc, line 191

Code

function lingotek_add_vault($name) {
  $output = LingotekApi::instance()
    ->request('addTMVault', array(
    'tmVaultName' => $name,
  ));
  if ($output->results == "success") {
    variable_set('lingotek_vault', $output->id);
    return $output->id;
  }
}