You are here

function tmgmt_local_field_attach_update in Translation Management Tool 7

Implements hook_field_attach_update().

File

translators/tmgmt_local/tmgmt_local.module, line 686
Main module file for the local translation module.

Code

function tmgmt_local_field_attach_update($entity_type, $entity) {
  if ($entity_type != 'user' || !array_intersect_key(user_roles(TRUE, 'provide translation services'), $entity->roles)) {
    return;
  }
  tmgmt_local_clear_languages_cache();
}