farmOS/modules/farm/farm_season/farm_season.features.field_...

69 lines
1.8 KiB
PHP

<?php
/**
* @file
* farm_season.features.field_instance.inc
*/
/**
* Implements hook_field_default_field_instances().
*/
function farm_season_field_default_field_instances() {
$field_instances = array();
// Exported field_instance: 'taxonomy_term-farm_season-field_farm_date_range'.
$field_instances['taxonomy_term-farm_season-field_farm_date_range'] = array(
'bundle' => 'farm_season',
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'inline',
'module' => 'date',
'settings' => array(
'format_type' => 'long',
'fromto' => 'both',
'multiple_from' => '',
'multiple_number' => '',
'multiple_to' => '',
'show_remaining_days' => FALSE,
'show_repeat_rule' => 'show',
),
'type' => 'date_default',
'weight' => 0,
),
),
'entity_type' => 'taxonomy_term',
'field_name' => 'field_farm_date_range',
'label' => 'Date Range',
'required' => 0,
'settings' => array(
'default_value' => 'now',
'default_value2' => 'strtotime',
'default_value_code' => '',
'default_value_code2' => '+180 days',
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'date',
'settings' => array(
'increment' => 15,
'input_format' => 'M j Y - g:i:sa',
'input_format_custom' => '',
'label_position' => 'above',
'repeat_collapsed' => 0,
'text_parts' => array(),
'year_range' => '-3:+3',
),
'type' => 'date_popup',
'weight' => 1,
),
);
// Translatables
// Included for use with string extractors like potx.
t('Date Range');
return $field_instances;
}