You are here

function tmgmt_local_field_attach_delete in Translation Management Tool 8

Same name and namespace in other branches
  1. 7 translators/tmgmt_local/tmgmt_local.module \tmgmt_local_field_attach_delete()

Implements hook_field_attach_delete().

File

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

Code

function tmgmt_local_field_attach_delete(UserInterface $user) {
  if (!$user
    ->hasPermission('provide translation services')) {
    return;
  }
  tmgmt_local_clear_languages_cache();
}