You are here

function tmgmt_translator_access in Translation Management Tool 7

Access callback for the translator entity.

Related topics

1 string reference to 'tmgmt_translator_access'
tmgmt_entity_info in ./tmgmt.module
Implements hook_entity_info().

File

./tmgmt.module, line 833
Main module file for the Translation Management module.

Code

function tmgmt_translator_access($op, TMGMTTranslator $translator = NULL, $account = NULL) {
  if (isset($translator) && !$translator
    ->getController()) {
    return FALSE;
  }

  // Only administrators are allowed to manage translator entities.
  return user_access('administer tmgmt', $account);
}