function lingotek_get_guid in Lingotek Translation 7.3
Same name and namespace in other branches
- 7.7 lingotek.dashboard.inc \lingotek_get_guid()
- 7.2 lingotek.dashboard.inc \lingotek_get_guid()
- 7.4 lingotek.dashboard.inc \lingotek_get_guid()
- 7.5 lingotek.dashboard.inc \lingotek_get_guid()
- 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 298 - 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;
}