You are here

function lingotek_get_guid in Lingotek Translation 7.7

Same name and namespace in other branches
  1. 7.2 lingotek.dashboard.inc \lingotek_get_guid()
  2. 7.3 lingotek.dashboard.inc \lingotek_get_guid()
  3. 7.4 lingotek.dashboard.inc \lingotek_get_guid()
  4. 7.5 lingotek.dashboard.inc \lingotek_get_guid()
  5. 7.6 lingotek.dashboard.inc \lingotek_get_guid()

Generates Lingotek GUID for this installation.

1 call to lingotek_get_guid()
lingotek_get_dashboard_code in ./lingotek.dashboard.inc
Generates the code for the embedded Javascript dashboard.

File

./lingotek.dashboard.inc, line 265
Lingotek Dashboard.

Code

function lingotek_get_guid() {
  $guid = variable_get('lingotek_guid', '');
  if ($guid == '') {
    $guid = substr(hash('sha256', drupal_get_hash_salt()), 0, 16);
    variable_set('lingotek_guid', $guid);
  }
  return $guid;
}