function field_test_field_widget_info

Implements hook_field_widget_info().

2 calls to field_test_field_widget_info()
FieldInfoTestCase::testFieldInfo in modules/field/tests/field.test
Test that field types and field definitions are correcly cached.
FieldInfoTestCase::testSettingsInfo in modules/field/tests/field.test
Test that the field_info settings convenience functions work.

File

modules/field/tests/field_test.field.inc, line 168

Code

function field_test_field_widget_info() {
    return array(
        'test_field_widget' => array(
            'label' => t('Test field'),
            'field types' => array(
                'test_field',
                'hidden_test_field',
            ),
            'settings' => array(
                'test_widget_setting' => 'dummy test string',
            ),
        ),
        'test_field_widget_multiple' => array(
            'label' => t('Test field 1'),
            'field types' => array(
                'test_field',
            ),
            'settings' => array(
                'test_widget_setting_multiple' => 'dummy test string',
            ),
            'behaviors' => array(
                'multiple values' => FIELD_BEHAVIOR_CUSTOM,
            ),
        ),
    );
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.