Pull merge.
[yaffs-website] / vendor / chi-teck / drupal-code-generator / templates / d7 / hook / field_widget_info.twig
1 /**
2  * Implements hook_field_widget_info().
3  */
4 function {{ machine_name }}_field_widget_info() {
5   return array(
6     'text_textfield' => array(
7       'label' => t('Text field'),
8       'field types' => array('text'),
9       'settings' => array('size' => 60),
10       'behaviors' => array(
11         'multiple values' => FIELD_BEHAVIOR_DEFAULT,
12         'default value' => FIELD_BEHAVIOR_DEFAULT,
13       ),
14     ),
15     'text_textarea' => array(
16       'label' => t('Text area (multiple rows)'),
17       'field types' => array('text_long'),
18       'settings' => array('rows' => 5),
19       'behaviors' => array(
20         'multiple values' => FIELD_BEHAVIOR_DEFAULT,
21         'default value' => FIELD_BEHAVIOR_DEFAULT,
22       ),
23     ),
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),
28       'behaviors' => array(
29         'multiple values' => FIELD_BEHAVIOR_DEFAULT,
30         'default value' => FIELD_BEHAVIOR_DEFAULT,
31       ),
32       // As an advanced widget, force it to sink to the bottom of the choices.
33       'weight' => 2,
34     ),
35   );
36 }