Commit 5578271e authored by alexpott's avatar alexpott

Issue #1977790 by andypost: Fixed Drop node_entity_info_alter() as unused.

parent 11e5c1da
......@@ -218,7 +218,7 @@ function testTranslatableFieldSaveLoad() {
// Enable field translations for nodes.
field_test_entity_info_translatable('node', TRUE);
$entity_info = entity_get_info('node');
$this->assertTrue(count($entity_info['translation']), 'Nodes are translatable.');
$this->assertTrue(count($entity_info['translatable']), 'Nodes are translatable.');
// Prepare the field translations.
field_test_entity_info_translatable('test_entity', TRUE);
......
......@@ -180,16 +180,6 @@ function node_theme() {
);
}
/**
* Implements hook_entity_info_alter().
*/
function node_entity_info_alter(&$info) {
// Add a translation handler for fields if the language module is enabled.
if (module_exists('language')) {
$info['node']['translation']['node'] = TRUE;
}
}
/**
* Implements hook_entity_view_mode_info().
*/
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment