You are here

function locale_entity_info_alter in Drupal 7

Implements hook_entity_info_alter().

File

modules/locale/locale.module, line 525
Add language handling functionality and enables the translation of the user interface to languages other than English.

Code

function locale_entity_info_alter(&$entity_info) {
  $entity_info['node']['translation']['locale'] = TRUE;
  if (isset($entity_info['comment'])) {
    $entity_info['comment']['translation']['locale'] = TRUE;
  }
}