summaryrefslogtreecommitdiff
path: root/modules/simpletest/tests
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-08-31 05:35:47 +0000
committerDries Buytaert <dries@buytaert.net>2009-08-31 05:35:47 +0000
commit26a5f0408b8db92f85af90695269cc69c67e41bf (patch)
tree87fd6e1c40a5fa1fb0c1eb43fdce112976633d58 /modules/simpletest/tests
parent859d158d4550e9972f305413b2fba0253a03675e (diff)
downloadbrdo-26a5f0408b8db92f85af90695269cc69c67e41bf.tar.gz
brdo-26a5f0408b8db92f85af90695269cc69c67e41bf.tar.bz2
- Patch #563742 by plach: hotfix for broken hook_entity_info_alter().
Diffstat (limited to 'modules/simpletest/tests')
-rw-r--r--modules/simpletest/tests/field_test.module10
1 files changed, 5 insertions, 5 deletions
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;