summaryrefslogtreecommitdiff
path: root/modules/simpletest
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-08-25 21:53:48 +0000
committerDries Buytaert <dries@buytaert.net>2009-08-25 21:53:48 +0000
commit3f36af04de485a0afa575c17a5d622545e183c75 (patch)
treeb56543fd9bae1a30aff782b5ce5f333f39edc1fe /modules/simpletest
parentc9c962d80171a8d0e12c28084dded6aac54b3182 (diff)
downloadbrdo-3f36af04de485a0afa575c17a5d622545e183c75.tar.gz
brdo-3f36af04de485a0afa575c17a5d622545e183c75.tar.bz2
- Patch #460320 by catch, fago, Frando: standardized, pluggable entity loading for nodes, users, taxonomies, files and comments.
Diffstat (limited to 'modules/simpletest')
-rw-r--r--modules/simpletest/tests/field_test.module4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/simpletest/tests/field_test.module b/modules/simpletest/tests/field_test.module
index 54ae3d405..fce1e4735 100644
--- a/modules/simpletest/tests/field_test.module
+++ b/modules/simpletest/tests/field_test.module
@@ -60,7 +60,7 @@ function field_test_menu() {
/**
* Define a test fieldable entity.
*/
-function field_test_fieldable_info() {
+function field_test_entity_info() {
$bundles = variable_get('field_test_bundles', array('test_bundle' => array('label' => 'Test Bundle')));
return array(
'test_entity' => array(
@@ -72,6 +72,7 @@ function field_test_fieldable_info() {
),
'cacheable' => FALSE,
'bundles' => $bundles,
+ 'fieldable' => TRUE,
),
// This entity type doesn't get form handling for now...
'test_cacheable_entity' => array(
@@ -81,6 +82,7 @@ function field_test_fieldable_info() {
'revision' => 'ftvid',
'bundle' => 'fttype',
),
+ 'fieldable' => TRUE,
'cacheable' => TRUE,
'bundles' => $bundles,
),