Depend on farm_fields for the date range field base.
This commit is contained in:
parent
82d9e1a0bc
commit
fa3486b84b
|
@ -15,6 +15,7 @@ This module depends on the following modules:
|
|||
* Features (http://drupal.org/project/features)
|
||||
* Pathauto (http://drupal.org/project/pathauto)
|
||||
* Strongarm (http://drupal.org/project/strongarm)
|
||||
* Farm Fields (http://drupal.org/project/farm_fields)
|
||||
|
||||
INSTALLATION
|
||||
------------
|
||||
|
|
|
@ -1,98 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* @file
|
||||
* farm_taxonomy.features.field.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_field_default_fields().
|
||||
*/
|
||||
function farm_taxonomy_field_default_fields() {
|
||||
$fields = array();
|
||||
|
||||
// Exported field: 'taxonomy_term-farm_season-field_farm_date_range'.
|
||||
$fields['taxonomy_term-farm_season-field_farm_date_range'] = array(
|
||||
'field_config' => array(
|
||||
'active' => 1,
|
||||
'cardinality' => 1,
|
||||
'deleted' => 0,
|
||||
'entity_types' => array(),
|
||||
'field_name' => 'field_farm_date_range',
|
||||
'foreign keys' => array(),
|
||||
'indexes' => array(),
|
||||
'locked' => 0,
|
||||
'module' => 'date',
|
||||
'settings' => array(
|
||||
'cache_count' => 4,
|
||||
'cache_enabled' => 0,
|
||||
'granularity' => array(
|
||||
'day' => 'day',
|
||||
'hour' => 0,
|
||||
'minute' => 0,
|
||||
'month' => 'month',
|
||||
'second' => 0,
|
||||
'year' => 'year',
|
||||
),
|
||||
'repeat' => 0,
|
||||
'timezone_db' => '',
|
||||
'todate' => 'required',
|
||||
'tz_handling' => 'none',
|
||||
),
|
||||
'translatable' => 0,
|
||||
'type' => 'datestamp',
|
||||
),
|
||||
'field_instance' => 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_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 $fields;
|
||||
}
|
|
@ -0,0 +1,67 @@
|
|||
<?php
|
||||
/**
|
||||
* @file
|
||||
* farm_taxonomy.features.field_instance.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_field_default_field_instances().
|
||||
*/
|
||||
function farm_taxonomy_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_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;
|
||||
}
|
|
@ -5,14 +5,14 @@ package = Farm
|
|||
dependencies[] = ctools
|
||||
dependencies[] = date
|
||||
dependencies[] = date_popup
|
||||
dependencies[] = farm_fields
|
||||
dependencies[] = features
|
||||
dependencies[] = field_sql_storage
|
||||
dependencies[] = pathauto
|
||||
dependencies[] = strongarm
|
||||
dependencies[] = taxonomy
|
||||
features[ctools][] = strongarm:strongarm:1
|
||||
features[features_api][] = api:2
|
||||
features[field][] = taxonomy_term-farm_season-field_farm_date_range
|
||||
features[field_instance][] = taxonomy_term-farm_season-field_farm_date_range
|
||||
features[taxonomy][] = farm_materials
|
||||
features[taxonomy][] = farm_season
|
||||
features[variable][] = field_bundle_settings_taxonomy_term__farm_materials
|
||||
|
|
Loading…
Reference in New Issue