function field_test_field_info in SimpleTest 7
Implement hook_field_info().
File
- tests/
field_test.module, line 357
Code
function field_test_field_info() {
return array(
'test_field' => array(
'label' => t('Test Field'),
'settings' => array(
'test_field_setting' => 'dummy test string',
'changeable' => 'a changeable field setting',
'unchangeable' => 'an unchangeable field setting',
),
'instance_settings' => array(
'test_instance_setting' => 'dummy test string',
'test_hook_field_load' => FALSE,
),
'default_widget' => 'test_field_widget',
'default_formatter' => 'field_test_default',
),
);
}