You are here

function tmgmt_entity_test_entity_info_alter in Translation Management Tool 7

Implements hook_entity_info_alter().

File

sources/entity/tests/tmgmt_entity_test.module, line 11
Tests module for the Entity Source plugin.

Code

function tmgmt_entity_test_entity_info_alter(&$entity_info) {
  if (isset($entity_info['taxonomy_term']) && empty($entity_info['taxonomy_term']['translation'])) {
    $entity_info['taxonomy_term']['translation'] = array(
      'tmgmt_entity_test_translation' => array(
        'base path' => 'taxonomy/term/%taxonomy_term',
        'alias' => TRUE,
      ),
    );
  }
}