Issue #1977790 by andypost: Fixed Drop node_entity_info_alter() as unused.
parent
11e5c1da65
commit
5578271e5b
|
@ -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);
|
||||
|
|
|
@ -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().
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue