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

8.0.x
Alex Pott 2013-04-24 13:33:56 +01:00
parent 11e5c1da65
commit 5578271e5b
2 changed files with 1 additions and 11 deletions

View File

@ -218,7 +218,7 @@ class TranslationTest extends FieldUnitTestBase {
// 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);

View File

@ -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().
*/