function l10n_client_access in Localization client 6.2
Same name and namespace in other branches
- 6 l10n_client.module \l10n_client_access()
- 7 l10n_client.module \l10n_client_access()
Detects whether a user can access l10n_client.
3 calls to l10n_client_access()
- l10n_client_footer in ./
l10n_client.module - Implementation of hook_footer().
- l10n_client_init in ./
l10n_client.module - Implementation of hook_init().
- l10n_client_save_string in ./
l10n_client.module - Menu callback. Saves a string translation coming as POST data.
1 string reference to 'l10n_client_access'
- l10n_client_menu in ./
l10n_client.module - Implementation of hook_menu().
File
- ./
l10n_client.module, line 115 - Localization client. Provides on-page translation editing.
Code
function l10n_client_access($account = NULL) {
if (!isset($account)) {
global $user;
$account = $user;
}
return user_access('use on-page translation', $account) && empty($account->l10n_client_disabled);
}