123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- <?php
- /**
- * @file
- * page.features.field_instance.inc
- */
- /**
- * Implements hook_field_default_field_instances().
- */
- function page_field_default_field_instances() {
- $field_instances = array();
- // Exported field_instance: 'node-page-body'.
- $field_instances['node-page-body'] = array(
- 'bundle' => 'page',
- 'default_value' => NULL,
- 'deleted' => 0,
- 'description' => '',
- 'display' => array(
- 'accueil' => array(
- 'label' => 'above',
- 'settings' => array(),
- 'type' => 'hidden',
- 'weight' => 0,
- ),
- 'default' => array(
- 'label' => 'hidden',
- 'module' => 'text',
- 'settings' => array(),
- 'type' => 'text_default',
- 'weight' => 0,
- ),
- 'teaser' => array(
- 'label' => 'hidden',
- 'module' => 'text',
- 'settings' => array(
- 'trim_length' => 600,
- ),
- 'type' => 'text_summary_or_trimmed',
- 'weight' => 0,
- ),
- ),
- 'entity_type' => 'node',
- 'field_name' => 'body',
- 'label' => 'Body',
- 'required' => FALSE,
- 'settings' => array(
- 'display_summary' => TRUE,
- 'entity_translation_sync' => FALSE,
- 'text_processing' => 1,
- 'user_register_form' => FALSE,
- ),
- 'widget' => array(
- 'module' => 'text',
- 'settings' => array(
- 'rows' => 20,
- 'summary_rows' => 5,
- ),
- 'type' => 'text_textarea_with_summary',
- 'weight' => -4,
- ),
- );
- // Translatables
- // Included for use with string extractors like potx.
- t('Body');
- return $field_instances;
- }
|