Split field bases and instances. Move common field bases to farm_fields and farm_area.
This commit is contained in:
parent
37bb511aef
commit
74584a608f
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,155 @@
|
|||
<?php
|
||||
/**
|
||||
* @file
|
||||
* farm_log.features.field_base.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_field_default_field_bases().
|
||||
*/
|
||||
function farm_log_field_default_field_bases() {
|
||||
$field_bases = array();
|
||||
|
||||
// Exported field_base: 'field_farm_move_from'
|
||||
$field_bases['field_farm_move_from'] = array(
|
||||
'active' => 1,
|
||||
'cardinality' => -1,
|
||||
'deleted' => 0,
|
||||
'entity_types' => array(),
|
||||
'field_name' => 'field_farm_move_from',
|
||||
'indexes' => array(
|
||||
'tid' => array(
|
||||
0 => 'tid',
|
||||
),
|
||||
),
|
||||
'locked' => 0,
|
||||
'module' => 'taxonomy',
|
||||
'settings' => array(
|
||||
'allowed_values' => array(
|
||||
0 => array(
|
||||
'vocabulary' => 'farm_areas',
|
||||
'parent' => 0,
|
||||
),
|
||||
),
|
||||
),
|
||||
'translatable' => 0,
|
||||
'type' => 'taxonomy_term_reference',
|
||||
);
|
||||
|
||||
// Exported field_base: 'field_farm_move_to'
|
||||
$field_bases['field_farm_move_to'] = array(
|
||||
'active' => 1,
|
||||
'cardinality' => 1,
|
||||
'deleted' => 0,
|
||||
'entity_types' => array(),
|
||||
'field_name' => 'field_farm_move_to',
|
||||
'indexes' => array(
|
||||
'tid' => array(
|
||||
0 => 'tid',
|
||||
),
|
||||
),
|
||||
'locked' => 0,
|
||||
'module' => 'taxonomy',
|
||||
'settings' => array(
|
||||
'allowed_values' => array(
|
||||
0 => array(
|
||||
'vocabulary' => 'farm_areas',
|
||||
'parent' => 0,
|
||||
),
|
||||
),
|
||||
),
|
||||
'translatable' => 0,
|
||||
'type' => 'taxonomy_term_reference',
|
||||
);
|
||||
|
||||
// Exported field_base: 'field_farm_observation_type'
|
||||
$field_bases['field_farm_observation_type'] = array(
|
||||
'active' => 1,
|
||||
'cardinality' => 1,
|
||||
'deleted' => 0,
|
||||
'entity_types' => array(),
|
||||
'field_name' => 'field_farm_observation_type',
|
||||
'indexes' => array(
|
||||
'tid' => array(
|
||||
0 => 'tid',
|
||||
),
|
||||
),
|
||||
'locked' => 0,
|
||||
'module' => 'taxonomy',
|
||||
'settings' => array(
|
||||
'allowed_values' => array(
|
||||
0 => array(
|
||||
'vocabulary' => 'farm_observation_types',
|
||||
'parent' => 0,
|
||||
),
|
||||
),
|
||||
),
|
||||
'translatable' => 0,
|
||||
'type' => 'taxonomy_term_reference',
|
||||
);
|
||||
|
||||
// Exported field_base: 'field_farm_quantity'
|
||||
$field_bases['field_farm_quantity'] = array(
|
||||
'active' => 1,
|
||||
'cardinality' => 1,
|
||||
'deleted' => 0,
|
||||
'entity_types' => array(),
|
||||
'field_name' => 'field_farm_quantity',
|
||||
'indexes' => array(
|
||||
'revision_id' => array(
|
||||
0 => 'revision_id',
|
||||
),
|
||||
),
|
||||
'locked' => 0,
|
||||
'module' => 'field_collection',
|
||||
'settings' => array(
|
||||
'hide_blank_items' => 1,
|
||||
'path' => '',
|
||||
),
|
||||
'translatable' => 0,
|
||||
'type' => 'field_collection',
|
||||
);
|
||||
|
||||
// Exported field_base: 'field_farm_quantity_units'
|
||||
$field_bases['field_farm_quantity_units'] = array(
|
||||
'active' => 1,
|
||||
'cardinality' => 1,
|
||||
'deleted' => 0,
|
||||
'entity_types' => array(),
|
||||
'field_name' => 'field_farm_quantity_units',
|
||||
'indexes' => array(
|
||||
'tid' => array(
|
||||
0 => 'tid',
|
||||
),
|
||||
),
|
||||
'locked' => 0,
|
||||
'module' => 'taxonomy',
|
||||
'settings' => array(
|
||||
'allowed_values' => array(
|
||||
0 => array(
|
||||
'vocabulary' => 'farm_quantity_units',
|
||||
'parent' => 0,
|
||||
),
|
||||
),
|
||||
),
|
||||
'translatable' => 0,
|
||||
'type' => 'taxonomy_term_reference',
|
||||
);
|
||||
|
||||
// Exported field_base: 'field_farm_quantity_value'
|
||||
$field_bases['field_farm_quantity_value'] = array(
|
||||
'active' => 1,
|
||||
'cardinality' => 1,
|
||||
'deleted' => 0,
|
||||
'entity_types' => array(),
|
||||
'field_name' => 'field_farm_quantity_value',
|
||||
'indexes' => array(),
|
||||
'locked' => 0,
|
||||
'module' => 'fraction',
|
||||
'settings' => array(),
|
||||
'translatable' => 0,
|
||||
'type' => 'fraction',
|
||||
);
|
||||
|
||||
return $field_bases;
|
||||
}
|
|
@ -0,0 +1,559 @@
|
|||
<?php
|
||||
/**
|
||||
* @file
|
||||
* farm_log.features.field_instance.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_field_default_field_instances().
|
||||
*/
|
||||
function farm_log_field_default_field_instances() {
|
||||
$field_instances = array();
|
||||
|
||||
// Exported field_instance:
|
||||
// 'field_collection_item-field_farm_quantity-field_farm_quantity_units'
|
||||
$field_instances['field_collection_item-field_farm_quantity-field_farm_quantity_units'] = array(
|
||||
'bundle' => 'field_farm_quantity',
|
||||
'default_value' => NULL,
|
||||
'deleted' => 0,
|
||||
'description' => '',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'hidden',
|
||||
'module' => 'taxonomy',
|
||||
'settings' => array(),
|
||||
'type' => 'taxonomy_term_reference_plain',
|
||||
'weight' => 1,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'field_collection_item',
|
||||
'field_name' => 'field_farm_quantity_units',
|
||||
'label' => 'Units',
|
||||
'required' => 1,
|
||||
'settings' => array(
|
||||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'active' => 0,
|
||||
'module' => 'taxonomy',
|
||||
'settings' => array(
|
||||
'autocomplete_path' => 'taxonomy/autocomplete',
|
||||
'size' => 60,
|
||||
),
|
||||
'type' => 'taxonomy_autocomplete',
|
||||
'weight' => 1,
|
||||
),
|
||||
);
|
||||
|
||||
// Exported field_instance:
|
||||
// 'field_collection_item-field_farm_quantity-field_farm_quantity_value'
|
||||
$field_instances['field_collection_item-field_farm_quantity-field_farm_quantity_value'] = array(
|
||||
'bundle' => 'field_farm_quantity',
|
||||
'default_value' => NULL,
|
||||
'deleted' => 0,
|
||||
'description' => '',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'hidden',
|
||||
'module' => 'fraction',
|
||||
'settings' => array(
|
||||
'auto_precision' => 1,
|
||||
'precision' => 0,
|
||||
),
|
||||
'type' => 'fraction_decimal',
|
||||
'weight' => 0,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'field_collection_item',
|
||||
'field_name' => 'field_farm_quantity_value',
|
||||
'label' => 'Value',
|
||||
'required' => 1,
|
||||
'settings' => array(
|
||||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'active' => 1,
|
||||
'module' => 'fraction',
|
||||
'settings' => array(
|
||||
'auto_precision' => 1,
|
||||
'precision' => 0,
|
||||
),
|
||||
'type' => 'fraction_decimal',
|
||||
'weight' => 0,
|
||||
),
|
||||
);
|
||||
|
||||
// Exported field_instance: 'log-farm_activity-field_farm_area'
|
||||
$field_instances['log-farm_activity-field_farm_area'] = array(
|
||||
'bundle' => 'farm_activity',
|
||||
'default_value' => NULL,
|
||||
'deleted' => 0,
|
||||
'description' => 'What area did this activity take place in?',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'above',
|
||||
'module' => 'taxonomy',
|
||||
'settings' => array(),
|
||||
'type' => 'taxonomy_term_reference_link',
|
||||
'weight' => 4,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'log',
|
||||
'field_name' => 'field_farm_area',
|
||||
'label' => 'Area',
|
||||
'required' => 0,
|
||||
'settings' => array(
|
||||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'active' => 0,
|
||||
'module' => 'taxonomy',
|
||||
'settings' => array(
|
||||
'autocomplete_path' => 'taxonomy/autocomplete',
|
||||
'size' => 60,
|
||||
),
|
||||
'type' => 'taxonomy_autocomplete',
|
||||
'weight' => 3,
|
||||
),
|
||||
);
|
||||
|
||||
// Exported field_instance: 'log-farm_activity-field_farm_asset'
|
||||
$field_instances['log-farm_activity-field_farm_asset'] = array(
|
||||
'bundle' => 'farm_activity',
|
||||
'default_value' => NULL,
|
||||
'deleted' => 0,
|
||||
'description' => 'What assets does this activity pertain to?',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'inline',
|
||||
'module' => 'entityreference',
|
||||
'settings' => array(
|
||||
'link' => 1,
|
||||
),
|
||||
'type' => 'entityreference_label',
|
||||
'weight' => 1,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'log',
|
||||
'field_name' => 'field_farm_asset',
|
||||
'label' => 'Assets',
|
||||
'required' => 0,
|
||||
'settings' => array(
|
||||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'active' => 1,
|
||||
'module' => 'entityreference',
|
||||
'settings' => array(
|
||||
'match_operator' => 'CONTAINS',
|
||||
'path' => '',
|
||||
'size' => 60,
|
||||
),
|
||||
'type' => 'entityreference_autocomplete_tags',
|
||||
'weight' => 2,
|
||||
),
|
||||
);
|
||||
|
||||
// Exported field_instance: 'log-farm_activity-field_farm_notes'
|
||||
$field_instances['log-farm_activity-field_farm_notes'] = array(
|
||||
'bundle' => 'farm_activity',
|
||||
'default_value' => NULL,
|
||||
'deleted' => 0,
|
||||
'description' => '',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'inline',
|
||||
'module' => 'text',
|
||||
'settings' => array(),
|
||||
'type' => 'text_default',
|
||||
'weight' => 2,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'log',
|
||||
'field_name' => 'field_farm_notes',
|
||||
'label' => 'Notes',
|
||||
'required' => 0,
|
||||
'settings' => array(
|
||||
'text_processing' => 0,
|
||||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'active' => 1,
|
||||
'module' => 'text',
|
||||
'settings' => array(
|
||||
'rows' => 5,
|
||||
),
|
||||
'type' => 'text_textarea',
|
||||
'weight' => 4,
|
||||
),
|
||||
);
|
||||
|
||||
// Exported field_instance: 'log-farm_movement-field_farm_asset'
|
||||
$field_instances['log-farm_movement-field_farm_asset'] = array(
|
||||
'bundle' => 'farm_movement',
|
||||
'default_value' => NULL,
|
||||
'deleted' => 0,
|
||||
'description' => 'What assets are being moved?',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'inline',
|
||||
'module' => 'entityreference',
|
||||
'settings' => array(
|
||||
'link' => 1,
|
||||
),
|
||||
'type' => 'entityreference_label',
|
||||
'weight' => 0,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'log',
|
||||
'field_name' => 'field_farm_asset',
|
||||
'label' => 'Assets',
|
||||
'required' => 1,
|
||||
'settings' => array(
|
||||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'active' => 1,
|
||||
'module' => 'entityreference',
|
||||
'settings' => array(
|
||||
'match_operator' => 'CONTAINS',
|
||||
'path' => '',
|
||||
'size' => 60,
|
||||
),
|
||||
'type' => 'entityreference_autocomplete_tags',
|
||||
'weight' => 1,
|
||||
),
|
||||
);
|
||||
|
||||
// Exported field_instance: 'log-farm_movement-field_farm_move_from'
|
||||
$field_instances['log-farm_movement-field_farm_move_from'] = array(
|
||||
'bundle' => 'farm_movement',
|
||||
'default_value' => NULL,
|
||||
'deleted' => 0,
|
||||
'description' => 'Where is it moving from? This field is optional. You may leave this blank as a way of setting the initial location of an object.',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'inline',
|
||||
'module' => 'taxonomy',
|
||||
'settings' => array(),
|
||||
'type' => 'taxonomy_term_reference_link',
|
||||
'weight' => 2,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'log',
|
||||
'field_name' => 'field_farm_move_from',
|
||||
'label' => 'From',
|
||||
'required' => 0,
|
||||
'settings' => array(
|
||||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'active' => 0,
|
||||
'module' => 'taxonomy',
|
||||
'settings' => array(
|
||||
'autocomplete_path' => 'taxonomy/autocomplete',
|
||||
'size' => 60,
|
||||
),
|
||||
'type' => 'taxonomy_autocomplete',
|
||||
'weight' => 2,
|
||||
),
|
||||
);
|
||||
|
||||
// Exported field_instance: 'log-farm_movement-field_farm_move_to'
|
||||
$field_instances['log-farm_movement-field_farm_move_to'] = array(
|
||||
'bundle' => 'farm_movement',
|
||||
'default_value' => NULL,
|
||||
'deleted' => 0,
|
||||
'description' => 'Where is it moving to?',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'inline',
|
||||
'module' => 'taxonomy',
|
||||
'settings' => array(),
|
||||
'type' => 'taxonomy_term_reference_link',
|
||||
'weight' => 3,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'log',
|
||||
'field_name' => 'field_farm_move_to',
|
||||
'label' => 'To',
|
||||
'required' => 1,
|
||||
'settings' => array(
|
||||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'active' => 0,
|
||||
'module' => 'taxonomy',
|
||||
'settings' => array(
|
||||
'autocomplete_path' => 'taxonomy/autocomplete',
|
||||
'size' => 60,
|
||||
),
|
||||
'type' => 'taxonomy_autocomplete',
|
||||
'weight' => 3,
|
||||
),
|
||||
);
|
||||
|
||||
// Exported field_instance: 'log-farm_movement-field_farm_notes'
|
||||
$field_instances['log-farm_movement-field_farm_notes'] = array(
|
||||
'bundle' => 'farm_movement',
|
||||
'default_value' => NULL,
|
||||
'deleted' => 0,
|
||||
'description' => '',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'inline',
|
||||
'module' => 'text',
|
||||
'settings' => array(),
|
||||
'type' => 'text_default',
|
||||
'weight' => 4,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'log',
|
||||
'field_name' => 'field_farm_notes',
|
||||
'label' => 'Notes',
|
||||
'required' => 0,
|
||||
'settings' => array(
|
||||
'text_processing' => 0,
|
||||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'active' => 1,
|
||||
'module' => 'text',
|
||||
'settings' => array(
|
||||
'rows' => 5,
|
||||
),
|
||||
'type' => 'text_textarea',
|
||||
'weight' => 4,
|
||||
),
|
||||
);
|
||||
|
||||
// Exported field_instance: 'log-farm_observation-field_farm_asset'
|
||||
$field_instances['log-farm_observation-field_farm_asset'] = array(
|
||||
'bundle' => 'farm_observation',
|
||||
'default_value' => NULL,
|
||||
'deleted' => 0,
|
||||
'description' => 'What assets does this observation pertain to?',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'inline',
|
||||
'module' => 'entityreference',
|
||||
'settings' => array(
|
||||
'link' => 1,
|
||||
),
|
||||
'type' => 'entityreference_label',
|
||||
'weight' => 0,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'log',
|
||||
'field_name' => 'field_farm_asset',
|
||||
'label' => 'Assets',
|
||||
'required' => 0,
|
||||
'settings' => array(
|
||||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'active' => 1,
|
||||
'module' => 'entityreference',
|
||||
'settings' => array(
|
||||
'match_operator' => 'CONTAINS',
|
||||
'path' => '',
|
||||
'size' => 60,
|
||||
),
|
||||
'type' => 'entityreference_autocomplete_tags',
|
||||
'weight' => 2,
|
||||
),
|
||||
);
|
||||
|
||||
// Exported field_instance: 'log-farm_observation-field_farm_images'
|
||||
$field_instances['log-farm_observation-field_farm_images'] = array(
|
||||
'bundle' => 'farm_observation',
|
||||
'deleted' => 0,
|
||||
'description' => '',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'above',
|
||||
'module' => 'colorbox',
|
||||
'settings' => array(
|
||||
'colorbox_caption' => 'auto',
|
||||
'colorbox_caption_custom' => '',
|
||||
'colorbox_gallery' => 'post',
|
||||
'colorbox_gallery_custom' => '',
|
||||
'colorbox_image_style' => '',
|
||||
'colorbox_multivalue_index' => NULL,
|
||||
'colorbox_node_style' => 'thumbnail',
|
||||
'colorbox_node_style_first' => 'large',
|
||||
),
|
||||
'type' => 'colorbox',
|
||||
'weight' => 5,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'log',
|
||||
'field_name' => 'field_farm_images',
|
||||
'label' => 'Photo(s)',
|
||||
'required' => 0,
|
||||
'settings' => array(
|
||||
'alt_field' => 0,
|
||||
'default_image' => 0,
|
||||
'file_directory' => '',
|
||||
'file_extensions' => 'png gif jpg jpeg',
|
||||
'filefield_paths' => array(
|
||||
'active_updating' => 0,
|
||||
'file_name' => array(
|
||||
'options' => array(
|
||||
'pathauto' => 0,
|
||||
'transliterate' => 0,
|
||||
),
|
||||
'value' => '[file:ffp-name-only-original].[file:ffp-extension-original]',
|
||||
),
|
||||
'file_path' => array(
|
||||
'options' => array(
|
||||
'pathauto' => 0,
|
||||
'transliterate' => 0,
|
||||
),
|
||||
'value' => 'farm/log/observation/[log:id]',
|
||||
),
|
||||
'retroactive_update' => 0,
|
||||
),
|
||||
'filefield_paths_enabled' => 1,
|
||||
'max_filesize' => '',
|
||||
'max_resolution' => '',
|
||||
'min_resolution' => '',
|
||||
'title_field' => 0,
|
||||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'active' => 1,
|
||||
'module' => 'image',
|
||||
'settings' => array(
|
||||
'preview_image_style' => 'thumbnail',
|
||||
'progress_indicator' => 'bar',
|
||||
),
|
||||
'type' => 'image_image',
|
||||
'weight' => 6,
|
||||
),
|
||||
);
|
||||
|
||||
// Exported field_instance: 'log-farm_observation-field_farm_notes'
|
||||
$field_instances['log-farm_observation-field_farm_notes'] = array(
|
||||
'bundle' => 'farm_observation',
|
||||
'default_value' => NULL,
|
||||
'deleted' => 0,
|
||||
'description' => '',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'inline',
|
||||
'module' => 'text',
|
||||
'settings' => array(),
|
||||
'type' => 'text_default',
|
||||
'weight' => 4,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'log',
|
||||
'field_name' => 'field_farm_notes',
|
||||
'label' => 'Notes',
|
||||
'required' => 0,
|
||||
'settings' => array(
|
||||
'text_processing' => 0,
|
||||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'active' => 1,
|
||||
'module' => 'text',
|
||||
'settings' => array(
|
||||
'rows' => 5,
|
||||
),
|
||||
'type' => 'text_textarea',
|
||||
'weight' => 5,
|
||||
),
|
||||
);
|
||||
|
||||
// Exported field_instance: 'log-farm_observation-field_farm_observation_type'
|
||||
$field_instances['log-farm_observation-field_farm_observation_type'] = array(
|
||||
'bundle' => 'farm_observation',
|
||||
'default_value' => NULL,
|
||||
'deleted' => 0,
|
||||
'description' => 'What type of observation is this. Use this to organize your observations into categories for easy viewing later. As you type, you will have the option of selecting from a list of types you entered in the past.',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'inline',
|
||||
'module' => 'taxonomy',
|
||||
'settings' => array(),
|
||||
'type' => 'taxonomy_term_reference_link',
|
||||
'weight' => 2,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'log',
|
||||
'field_name' => 'field_farm_observation_type',
|
||||
'label' => 'Type',
|
||||
'required' => 1,
|
||||
'settings' => array(
|
||||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'active' => 0,
|
||||
'module' => 'taxonomy',
|
||||
'settings' => array(
|
||||
'autocomplete_path' => 'taxonomy/autocomplete',
|
||||
'size' => 60,
|
||||
),
|
||||
'type' => 'taxonomy_autocomplete',
|
||||
'weight' => 3,
|
||||
),
|
||||
);
|
||||
|
||||
// Exported field_instance: 'log-farm_observation-field_farm_quantity'
|
||||
$field_instances['log-farm_observation-field_farm_quantity'] = array(
|
||||
'bundle' => 'farm_observation',
|
||||
'default_value' => NULL,
|
||||
'deleted' => 0,
|
||||
'description' => 'Optionally, use this quantity field to record an observed quantity.',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'inline',
|
||||
'module' => 'field_collection',
|
||||
'settings' => array(
|
||||
'view_mode' => 'full',
|
||||
),
|
||||
'type' => 'field_collection_fields',
|
||||
'weight' => 3,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'log',
|
||||
'field_name' => 'field_farm_quantity',
|
||||
'label' => 'Quantity',
|
||||
'required' => 0,
|
||||
'settings' => array(
|
||||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'active' => 0,
|
||||
'module' => 'field_collection',
|
||||
'settings' => array(),
|
||||
'type' => 'field_collection_embed',
|
||||
'weight' => 4,
|
||||
),
|
||||
);
|
||||
|
||||
// Translatables
|
||||
// Included for use with string extractors like potx.
|
||||
t('Area');
|
||||
t('Assets');
|
||||
t('From');
|
||||
t('Notes');
|
||||
t('Optionally, use this quantity field to record an observed quantity.');
|
||||
t('Photo(s)');
|
||||
t('Quantity');
|
||||
t('To');
|
||||
t('Type');
|
||||
t('Units');
|
||||
t('Value');
|
||||
t('What area did this activity take place in?');
|
||||
t('What assets are being moved?');
|
||||
t('What assets does this activity pertain to?');
|
||||
t('What assets does this observation pertain to?');
|
||||
t('What type of observation is this. Use this to organize your observations into categories for easy viewing later. As you type, you will have the option of selecting from a list of types you entered in the past.');
|
||||
t('Where is it moving from? This field is optional. You may leave this blank as a way of setting the initial location of an object.');
|
||||
t('Where is it moving to?');
|
||||
|
||||
return $field_instances;
|
||||
}
|
|
@ -11,9 +11,9 @@ dependencies[] = entity_token
|
|||
dependencies[] = entityreference
|
||||
dependencies[] = farm_area
|
||||
dependencies[] = farm_asset
|
||||
dependencies[] = farm_fields
|
||||
dependencies[] = features
|
||||
dependencies[] = field_collection
|
||||
dependencies[] = field_sql_storage
|
||||
dependencies[] = filefield_paths
|
||||
dependencies[] = fraction
|
||||
dependencies[] = image
|
||||
|
@ -27,20 +27,26 @@ dependencies[] = views
|
|||
features[ctools][] = strongarm:strongarm:1
|
||||
features[ctools][] = views:views_default:3.0
|
||||
features[features_api][] = api:2
|
||||
features[field][] = field_collection_item-field_farm_quantity-field_farm_quantity_units
|
||||
features[field][] = field_collection_item-field_farm_quantity-field_farm_quantity_value
|
||||
features[field][] = log-farm_activity-field_farm_area
|
||||
features[field][] = log-farm_activity-field_farm_asset
|
||||
features[field][] = log-farm_activity-field_farm_notes
|
||||
features[field][] = log-farm_movement-field_farm_asset
|
||||
features[field][] = log-farm_movement-field_farm_move_from
|
||||
features[field][] = log-farm_movement-field_farm_move_to
|
||||
features[field][] = log-farm_movement-field_farm_notes
|
||||
features[field][] = log-farm_observation-field_farm_asset
|
||||
features[field][] = log-farm_observation-field_farm_images
|
||||
features[field][] = log-farm_observation-field_farm_notes
|
||||
features[field][] = log-farm_observation-field_farm_observation_type
|
||||
features[field][] = log-farm_observation-field_farm_quantity
|
||||
features[field_base][] = field_farm_move_from
|
||||
features[field_base][] = field_farm_move_to
|
||||
features[field_base][] = field_farm_observation_type
|
||||
features[field_base][] = field_farm_quantity
|
||||
features[field_base][] = field_farm_quantity_units
|
||||
features[field_base][] = field_farm_quantity_value
|
||||
features[field_instance][] = field_collection_item-field_farm_quantity-field_farm_quantity_units
|
||||
features[field_instance][] = field_collection_item-field_farm_quantity-field_farm_quantity_value
|
||||
features[field_instance][] = log-farm_activity-field_farm_area
|
||||
features[field_instance][] = log-farm_activity-field_farm_asset
|
||||
features[field_instance][] = log-farm_activity-field_farm_notes
|
||||
features[field_instance][] = log-farm_movement-field_farm_asset
|
||||
features[field_instance][] = log-farm_movement-field_farm_move_from
|
||||
features[field_instance][] = log-farm_movement-field_farm_move_to
|
||||
features[field_instance][] = log-farm_movement-field_farm_notes
|
||||
features[field_instance][] = log-farm_observation-field_farm_asset
|
||||
features[field_instance][] = log-farm_observation-field_farm_images
|
||||
features[field_instance][] = log-farm_observation-field_farm_notes
|
||||
features[field_instance][] = log-farm_observation-field_farm_observation_type
|
||||
features[field_instance][] = log-farm_observation-field_farm_quantity
|
||||
features[log_type][] = farm_activity
|
||||
features[log_type][] = farm_movement
|
||||
features[log_type][] = farm_observation
|
||||
|
|
Loading…
Reference in New Issue