From 26a5f0408b8db92f85af90695269cc69c67e41bf Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 31 Aug 2009 05:35:47 +0000 Subject: - Patch #563742 by plach: hotfix for broken hook_entity_info_alter(). --- modules/simpletest/tests/field_test.module | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'modules/simpletest/tests') diff --git a/modules/simpletest/tests/field_test.module b/modules/simpletest/tests/field_test.module index 65e27c0bb..f0b47bd76 100644 --- a/modules/simpletest/tests/field_test.module +++ b/modules/simpletest/tests/field_test.module @@ -90,11 +90,11 @@ function field_test_entity_info() { } /** - * Implement hook_fieldable_info_alter(). + * Implement hook_entity_info_alter(). */ -function field_test_fieldable_info_alter(&$info) { - foreach (field_test_fieldable_info_translatable() as $obj_type => $translatable) { - $info[$obj_type]['translation_handlers']['field_test'] = TRUE; +function field_test_entity_info_alter(&$entity_info) { + foreach (field_test_entity_info_translatable() as $obj_type => $translatable) { + $entity_info[$obj_type]['translation_handlers']['field_test'] = TRUE; } } @@ -622,7 +622,7 @@ function field_test_field_languages($obj_type, $field, &$languages) { /** * Helper function to enable entity translations. */ -function field_test_fieldable_info_translatable($obj_type = NULL, $translatable = NULL) { +function field_test_entity_info_translatable($obj_type = NULL, $translatable = NULL) { $stored_value = &drupal_static(__FUNCTION__, array()); if (isset($obj_type) && isset($translatable)) { $stored_value[$obj_type] = $translatable; -- cgit v1.2.3