2 * Implements hook_field_widget_info().
4 function {{ machine_name }}_field_widget_info() {
6 'text_textfield' => array(
7 'label' => t('Text field'),
8 'field types' => array('text'),
9 'settings' => array('size' => 60),
11 'multiple values' => FIELD_BEHAVIOR_DEFAULT,
12 'default value' => FIELD_BEHAVIOR_DEFAULT,
15 'text_textarea' => array(
16 'label' => t('Text area (multiple rows)'),
17 'field types' => array('text_long'),
18 'settings' => array('rows' => 5),
20 'multiple values' => FIELD_BEHAVIOR_DEFAULT,
21 'default value' => FIELD_BEHAVIOR_DEFAULT,
24 'text_textarea_with_summary' => array(
25 'label' => t('Text area with a summary'),
26 'field types' => array('text_with_summary'),
27 'settings' => array('rows' => 20, 'summary_rows' => 5),
29 'multiple values' => FIELD_BEHAVIOR_DEFAULT,
30 'default value' => FIELD_BEHAVIOR_DEFAULT,
32 // As an advanced widget, force it to sink to the bottom of the choices.