function l10n_client_user_presave in Localization client 7
Implement hook_user_presave().
Save the l10n_client_key value in the user object.
File
- ./
l10n_client.module, line 576 - Localization client. Provides on-page translation editing.
Code
function l10n_client_user_presave(&$edit, $account, $category) {
if (isset($edit['l10n_client_key'])) {
$edit['data']['l10n_client_key'] = trim($edit['l10n_client_key']);
}
$edit['data']['l10n_client_disabled'] = !empty($edit['l10n_client_disabled']);
}