function text_field_widget_info
text_field_widget_info()
Implements hook_field_widget_info().
File
- modules/field/modules/text/text.module, line 452
- Defines simple text field types.
Code
function text_field_widget_info() { return array( 'text_textfield' => array( 'label' => t('Text field'), 'field types' => array('text'), 'settings' => array('size' => 60), ), 'text_textarea' => array( 'label' => t('Text area (multiple rows)'), 'field types' => array('text_long'), 'settings' => array('rows' => 5), ), 'text_textarea_with_summary' => array( 'label' => t('Text area with a summary'), 'field types' => array('text_with_summary'), 'settings' => array('rows' => 20, 'summary_rows' => 5), ), ); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!field!modules!text!text.module/function/text_field_widget_info/7.x