You are here

function lingotek_get_cms_key in Lingotek Translation 7.5

Same name and namespace in other branches
  1. 6 lingotek.api.inc \lingotek_get_cms_key()
  2. 7.2 lingotek.api.inc \lingotek_get_cms_key()
  3. 7.3 lingotek.api.inc \lingotek_get_cms_key()
  4. 7.4 lingotek.api.inc \lingotek_get_cms_key()
  5. 7.6 lingotek.remote.inc \lingotek_get_cms_key()

File

./lingotek.remote.inc, line 403

Code

function lingotek_get_cms_key() {
  global $_lingotek_client;
  $output = LingotekApi::instance()
    ->request("getCMSKey");
  if ($output->results == "success") {
    variable_del('lingotek_password');
    return $output->cms;
  }
  else {
    return "";
  }
}