function tmgmt_local_user_presave

Implements hook_field_attach_insert().

File

translators/tmgmt_local/tmgmt_local.module, line 480
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();
}