diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-05-18 18:30:49 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-05-18 18:30:49 +0000 |
commit | 5628bc2c9ba82570c63d491e1ee8ae7de6494508 (patch) | |
tree | 398d9c8c0ab80a26851ca43ab4aa23a674ea7fb8 /modules/field/tests/field_test.field.inc | |
parent | 09b0283675f938c89a2c541b6649deb10e7c5040 (diff) | |
download | brdo-5628bc2c9ba82570c63d491e1ee8ae7de6494508.tar.gz brdo-5628bc2c9ba82570c63d491e1ee8ae7de6494508.tar.bz2 |
- Patch #680416 by Amitaibu, yched: allow defining fields that can not be added via UI.
Diffstat (limited to 'modules/field/tests/field_test.field.inc')
-rw-r--r-- | modules/field/tests/field_test.field.inc | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/modules/field/tests/field_test.field.inc b/modules/field/tests/field_test.field.inc index faf1b1469..116e94a6a 100644 --- a/modules/field/tests/field_test.field.inc +++ b/modules/field/tests/field_test.field.inc @@ -12,7 +12,7 @@ function field_test_field_info() { return array( 'test_field' => array( - 'label' => t('Test Field'), + 'label' => t('Test field'), 'description' => t('Dummy field type used for tests.'), 'settings' => array( 'test_field_setting' => 'dummy test string', @@ -26,6 +26,15 @@ function field_test_field_info() { 'default_widget' => 'test_field_widget', 'default_formatter' => 'field_test_default', ), + 'hidden_test_field' => array( + 'no_ui' => TRUE, + 'label' => t('Hidden from UI test field'), + 'description' => t('Dummy hidden field type used for tests.'), + 'settings' => array(), + 'instance_settings' => array(), + 'default_widget' => 'test_field_widget', + 'default_formatter' => 'field_test_default', + ), ); } @@ -139,7 +148,7 @@ function field_test_field_widget_info() { return array( 'test_field_widget' => array( 'label' => t('Test field'), - 'field types' => array('test_field'), + 'field types' => array('test_field', 'hidden_test_field'), 'settings' => array('test_widget_setting' => 'dummy test string'), ), 'test_field_widget_multiple' => array( |