Chris@0: /** Chris@0: * Implements hook_field_info(). Chris@0: */ Chris@0: function {{ machine_name }}_field_info() { Chris@0: return array( Chris@0: 'text' => array( Chris@0: 'label' => t('Text'), Chris@0: 'description' => t('This field stores varchar text in the database.'), Chris@0: 'settings' => array('max_length' => 255), Chris@0: 'instance_settings' => array('text_processing' => 0), Chris@0: 'default_widget' => 'text_textfield', Chris@0: 'default_formatter' => 'text_default', Chris@0: ), Chris@0: 'text_long' => array( Chris@0: 'label' => t('Long text'), Chris@0: 'description' => t('This field stores long text in the database.'), Chris@0: 'settings' => array('max_length' => ''), Chris@0: 'instance_settings' => array('text_processing' => 0), Chris@0: 'default_widget' => 'text_textarea', Chris@0: 'default_formatter' => 'text_default', Chris@0: ), Chris@0: 'text_with_summary' => array( Chris@0: 'label' => t('Long text and summary'), Chris@0: 'description' => t('This field stores long text in the database along with optional summary text.'), Chris@0: 'settings' => array('max_length' => ''), Chris@0: 'instance_settings' => array('text_processing' => 1, 'display_summary' => 0), Chris@0: 'default_widget' => 'text_textarea_with_summary', Chris@0: 'default_formatter' => 'text_summary_or_trimmed', Chris@0: ), Chris@0: ); Chris@0: }