materio-base-legacy/sites/all/modules/features/showroom/showroom.features.field_instance.inc
2016-10-25 16:05:07 +02:00

96 lines
2.3 KiB
PHP

<?php
/**
* @file
* showroom.features.field_instance.inc
*/
/**
* Implements hook_field_default_field_instances().
*/
function showroom_field_default_field_instances() {
$field_instances = array();
// Exported field_instance: 'taxonomy_term-showroom-description_field'.
$field_instances['taxonomy_term-showroom-description_field'] = array(
'bundle' => 'showroom',
'default_value' => NULL,
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 1,
),
),
'entity_type' => 'taxonomy_term',
'field_name' => 'description_field',
'label' => 'Description',
'required' => FALSE,
'settings' => array(
'display_summary' => 0,
'entity_translation_sync' => FALSE,
'hide_label' => array(
'entity' => 'entity',
'page' => 'page',
),
'text_processing' => 1,
'user_register_form' => FALSE,
),
'widget' => array(
'module' => 'text',
'settings' => array(
'rows' => 20,
'summary_rows' => 5,
),
'type' => 'text_textarea_with_summary',
'weight' => -5,
),
);
// Exported field_instance: 'taxonomy_term-showroom-name_field'.
$field_instances['taxonomy_term-showroom-name_field'] = array(
'bundle' => 'showroom',
'default_value' => NULL,
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
),
'entity_type' => 'taxonomy_term',
'field_name' => 'name_field',
'label' => 'Nom',
'required' => TRUE,
'settings' => array(
'entity_translation_sync' => FALSE,
'hide_label' => array(
'entity' => 'entity',
'page' => 'page',
),
'text_processing' => 0,
'user_register_form' => FALSE,
),
'widget' => array(
'module' => 'text',
'settings' => array(
'size' => 60,
),
'type' => 'text_textfield',
'weight' => -5,
),
);
// Translatables
// Included for use with string extractors like potx.
t('Description');
t('Nom');
return $field_instances;
}