function _update_manager_unique_identifier
Same name in other branches
- 9 core/modules/update/update.module \_update_manager_unique_identifier()
- 8.9.x core/modules/update/update.module \_update_manager_unique_identifier()
- 10 core/modules/update/update.module \_update_manager_unique_identifier()
- 11.x core/modules/update/update.module \_update_manager_unique_identifier()
Returns a short unique identifier for this Drupal installation.
Return value
An eight character string uniquely identifying this Drupal installation.
2 calls to _update_manager_unique_identifier()
- _update_manager_cache_directory in modules/
update/ update.module - Returns the directory where update archive files should be cached.
- _update_manager_extract_directory in modules/
update/ update.module - Returns the directory where update archive files should be extracted.
File
-
modules/
update/ update.module, line 903
Code
function _update_manager_unique_identifier() {
$id =& drupal_static(__FUNCTION__, '');
if (empty($id)) {
$id = substr(hash('sha256', drupal_get_hash_salt()), 0, 8);
}
return $id;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.