function l10n_client_user_token in Localization client 6.2
Same name and namespace in other branches
- 6 l10n_client.module \l10n_client_user_token()
- 7 l10n_client.module \l10n_client_user_token()
Get user based semi unique token. This will ensure user keys are unique for each client.
2 calls to l10n_client_user_token()
- l10n_client_save_string in ./
l10n_client.module - Menu callback. Saves a string translation coming as POST data.
- l10n_client_user in ./
l10n_client.module - Implementation of hook_user().
File
- ./
l10n_client.module, line 555 - Localization client. Provides on-page translation editing.
Code
function l10n_client_user_token($account = NULL) {
global $user;
$account = isset($account) ? $account : $user;
return md5('l10n_client' . $account->uid . drupal_get_private_key());
}