You are here

function l10n_client_user_token in Localization client 7

Same name and namespace in other branches
  1. 6.2 l10n_client.module \l10n_client_user_token()
  2. 6 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_form_user_profile_form_alter in ./l10n_client.module
Implement hook_user_form().
l10n_client_save_string in ./l10n_client.module
Menu callback. Saves a string translation coming as POST data.

File

./l10n_client.module, line 586
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());
}