function tmgmt_local_user_presave in Translation Management Tool 8
Implements hook_field_attach_insert().
File
- translators/
tmgmt_local/ tmgmt_local.module, line 477 - Main module file for the local translation module.
Code
function tmgmt_local_user_presave(UserInterface $user) {
if (!$user
->hasPermission('provide translation services')) {
return;
}
tmgmt_local_clear_languages_cache();
}