Chris@0
|
1 /**
|
Chris@0
|
2 * Implements hook_field_info().
|
Chris@0
|
3 */
|
Chris@0
|
4 function {{ machine_name }}_field_info() {
|
Chris@0
|
5 return array(
|
Chris@0
|
6 'text' => array(
|
Chris@0
|
7 'label' => t('Text'),
|
Chris@0
|
8 'description' => t('This field stores varchar text in the database.'),
|
Chris@0
|
9 'settings' => array('max_length' => 255),
|
Chris@0
|
10 'instance_settings' => array('text_processing' => 0),
|
Chris@0
|
11 'default_widget' => 'text_textfield',
|
Chris@0
|
12 'default_formatter' => 'text_default',
|
Chris@0
|
13 ),
|
Chris@0
|
14 'text_long' => array(
|
Chris@0
|
15 'label' => t('Long text'),
|
Chris@0
|
16 'description' => t('This field stores long text in the database.'),
|
Chris@0
|
17 'settings' => array('max_length' => ''),
|
Chris@0
|
18 'instance_settings' => array('text_processing' => 0),
|
Chris@0
|
19 'default_widget' => 'text_textarea',
|
Chris@0
|
20 'default_formatter' => 'text_default',
|
Chris@0
|
21 ),
|
Chris@0
|
22 'text_with_summary' => array(
|
Chris@0
|
23 'label' => t('Long text and summary'),
|
Chris@0
|
24 'description' => t('This field stores long text in the database along with optional summary text.'),
|
Chris@0
|
25 'settings' => array('max_length' => ''),
|
Chris@0
|
26 'instance_settings' => array('text_processing' => 1, 'display_summary' => 0),
|
Chris@0
|
27 'default_widget' => 'text_textarea_with_summary',
|
Chris@0
|
28 'default_formatter' => 'text_summary_or_trimmed',
|
Chris@0
|
29 ),
|
Chris@0
|
30 );
|
Chris@0
|
31 }
|