Add "Owner" field and "Assignment" field group to all log types.

This commit is contained in:
Michael Stenta 2017-06-12 15:33:25 -04:00
parent 9eb560568b
commit 4ae857bde6
27 changed files with 739 additions and 59 deletions

View File

@ -290,7 +290,7 @@ function farm_crop_field_default_field_instances() {
'module' => 'file',
'settings' => array(),
'type' => 'file_table',
'weight' => 5,
'weight' => 6,
),
),
'entity_type' => 'log',
@ -335,7 +335,7 @@ function farm_crop_field_default_field_instances() {
'colorbox_node_style_first' => 'large',
),
'type' => 'colorbox',
'weight' => 4,
'weight' => 5,
),
),
'entity_type' => 'log',
@ -365,6 +365,40 @@ function farm_crop_field_default_field_instances() {
),
);
// Exported field_instance: 'log-farm_seeding-field_farm_log_owner'.
$field_instances['log-farm_seeding-field_farm_log_owner'] = array(
'bundle' => 'farm_seeding',
'default_value' => NULL,
'deleted' => 0,
'description' => 'Optionally assign this task to one or more people.',
'display' => array(
'default' => array(
'label' => 'inline',
'module' => 'entityreference',
'settings' => array(
'bypass_access' => FALSE,
'link' => FALSE,
),
'type' => 'entityreference_label',
'weight' => 4,
),
),
'entity_type' => 'log',
'field_name' => 'field_farm_log_owner',
'label' => 'Owner',
'required' => 0,
'settings' => array(
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'options',
'settings' => array(),
'type' => 'options_select',
'weight' => 8,
),
);
// Exported field_instance: 'log-farm_seeding-field_farm_movement'.
$field_instances['log-farm_seeding-field_farm_movement'] = array(
'bundle' => 'farm_seeding',
@ -379,7 +413,7 @@ function farm_crop_field_default_field_instances() {
'view_mode' => 'full',
),
'type' => 'field_collection_fields',
'weight' => 6,
'weight' => 7,
),
),
'entity_type' => 'log',
@ -551,7 +585,7 @@ function farm_crop_field_default_field_instances() {
'module' => 'file',
'settings' => array(),
'type' => 'file_table',
'weight' => 4,
'weight' => 5,
),
),
'entity_type' => 'log',
@ -596,7 +630,7 @@ function farm_crop_field_default_field_instances() {
'colorbox_node_style_first' => 'large',
),
'type' => 'colorbox',
'weight' => 3,
'weight' => 4,
),
),
'entity_type' => 'log',
@ -626,6 +660,40 @@ function farm_crop_field_default_field_instances() {
),
);
// Exported field_instance: 'log-farm_transplanting-field_farm_log_owner'.
$field_instances['log-farm_transplanting-field_farm_log_owner'] = array(
'bundle' => 'farm_transplanting',
'default_value' => NULL,
'deleted' => 0,
'description' => 'Optionally assign this task to one or more people.',
'display' => array(
'default' => array(
'label' => 'inline',
'module' => 'entityreference',
'settings' => array(
'bypass_access' => FALSE,
'link' => FALSE,
),
'type' => 'entityreference_label',
'weight' => 3,
),
),
'entity_type' => 'log',
'field_name' => 'field_farm_log_owner',
'label' => 'Owner',
'required' => 0,
'settings' => array(
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'options',
'settings' => array(),
'type' => 'options_select',
'weight' => 8,
),
);
// Exported field_instance: 'log-farm_transplanting-field_farm_movement'.
$field_instances['log-farm_transplanting-field_farm_movement'] = array(
'bundle' => 'farm_transplanting',
@ -640,7 +708,7 @@ function farm_crop_field_default_field_instances() {
'view_mode' => 'full',
),
'type' => 'field_collection_fields',
'weight' => 5,
'weight' => 6,
),
),
'entity_type' => 'log',
@ -944,6 +1012,8 @@ function farm_crop_field_default_field_instances() {
t('Files');
t('Movement');
t('Notes');
t('Optionally assign this task to one or more people.');
t('Owner');
t('Parent(s)');
t('Photos');
t('Planting');

View File

@ -10,6 +10,64 @@
function farm_crop_field_group_info() {
$field_groups = array();
$field_group = new stdClass();
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
$field_group->api_version = 1;
$field_group->identifier = 'group_farm_assignment|log|farm_seeding|form';
$field_group->group_name = 'group_farm_assignment';
$field_group->entity_type = 'log';
$field_group->bundle = 'farm_seeding';
$field_group->mode = 'form';
$field_group->parent_name = '';
$field_group->data = array(
'label' => 'Assignment',
'weight' => '4',
'children' => array(
0 => 'field_farm_log_owner',
),
'format_type' => 'fieldset',
'format_settings' => array(
'label' => 'Assignment',
'instance_settings' => array(
'required_fields' => 1,
'id' => '',
'classes' => 'group-farm-assignment field-group-fieldset',
'description' => '',
),
'formatter' => 'collapsed',
),
);
$field_groups['group_farm_assignment|log|farm_seeding|form'] = $field_group;
$field_group = new stdClass();
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
$field_group->api_version = 1;
$field_group->identifier = 'group_farm_assignment|log|farm_transplanting|form';
$field_group->group_name = 'group_farm_assignment';
$field_group->entity_type = 'log';
$field_group->bundle = 'farm_transplanting';
$field_group->mode = 'form';
$field_group->parent_name = '';
$field_group->data = array(
'label' => 'Assignment',
'weight' => '4',
'children' => array(
0 => 'field_farm_log_owner',
),
'format_type' => 'fieldset',
'format_settings' => array(
'label' => 'Assignment',
'instance_settings' => array(
'required_fields' => 1,
'id' => '',
'classes' => 'group-farm-assignment field-group-fieldset',
'description' => '',
),
'formatter' => 'collapsed',
),
);
$field_groups['group_farm_assignment|log|farm_transplanting|form'] = $field_group;
$field_group = new stdClass();
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
$field_group->api_version = 1;
@ -80,7 +138,7 @@ function farm_crop_field_group_info() {
$field_group->parent_name = '';
$field_group->data = array(
'label' => 'File attachments',
'weight' => '4',
'weight' => '5',
'children' => array(
0 => 'field_farm_files',
1 => 'field_farm_images',
@ -110,7 +168,7 @@ function farm_crop_field_group_info() {
$field_group->parent_name = '';
$field_group->data = array(
'label' => 'File attachments',
'weight' => '4',
'weight' => '5',
'children' => array(
0 => 'field_farm_files',
1 => 'field_farm_images',
@ -173,8 +231,8 @@ function farm_crop_field_group_info() {
'label' => 'General information',
'weight' => '0',
'children' => array(
0 => 'field_farm_seed_source',
1 => 'field_farm_asset',
0 => 'field_farm_asset',
1 => 'field_farm_seed_source',
2 => 'timestamp',
),
'format_type' => 'fieldset',
@ -308,6 +366,7 @@ function farm_crop_field_group_info() {
// Translatables
// Included for use with string extractors like potx.
t('Assignment');
t('Description');
t('File attachments');
t('General information');

View File

@ -50,6 +50,8 @@ features[field_base][] = field_farm_maturity_days
features[field_base][] = field_farm_season
features[field_base][] = field_farm_seed_source
features[field_base][] = field_farm_transplant_days
features[field_group][] = group_farm_assignment|log|farm_seeding|form
features[field_group][] = group_farm_assignment|log|farm_transplanting|form
features[field_group][] = group_farm_description|farm_asset|planting|form
features[field_group][] = group_farm_files|farm_asset|planting|form
features[field_group][] = group_farm_files|log|farm_seeding|form
@ -69,6 +71,7 @@ features[field_instance][] = farm_asset-planting-field_farm_season
features[field_instance][] = log-farm_seeding-field_farm_asset
features[field_instance][] = log-farm_seeding-field_farm_files
features[field_instance][] = log-farm_seeding-field_farm_images
features[field_instance][] = log-farm_seeding-field_farm_log_owner
features[field_instance][] = log-farm_seeding-field_farm_movement
features[field_instance][] = log-farm_seeding-field_farm_notes
features[field_instance][] = log-farm_seeding-field_farm_quantity
@ -76,6 +79,7 @@ features[field_instance][] = log-farm_seeding-field_farm_seed_source
features[field_instance][] = log-farm_transplanting-field_farm_asset
features[field_instance][] = log-farm_transplanting-field_farm_files
features[field_instance][] = log-farm_transplanting-field_farm_images
features[field_instance][] = log-farm_transplanting-field_farm_log_owner
features[field_instance][] = log-farm_transplanting-field_farm_movement
features[field_instance][] = log-farm_transplanting-field_farm_notes
features[field_instance][] = log-farm_transplanting-field_farm_quantity

View File

@ -287,7 +287,7 @@ function farm_equipment_field_default_field_instances() {
'module' => 'file',
'settings' => array(),
'type' => 'file_table',
'weight' => 3,
'weight' => 4,
),
),
'entity_type' => 'log',
@ -333,7 +333,7 @@ function farm_equipment_field_default_field_instances() {
'colorbox_node_style_first' => 'large',
),
'type' => 'colorbox',
'weight' => 2,
'weight' => 3,
),
),
'entity_type' => 'log',
@ -363,6 +363,40 @@ function farm_equipment_field_default_field_instances() {
),
);
// Exported field_instance: 'log-farm_maintenance-field_farm_log_owner'.
$field_instances['log-farm_maintenance-field_farm_log_owner'] = array(
'bundle' => 'farm_maintenance',
'default_value' => NULL,
'deleted' => 0,
'description' => 'Optionally assign this task to one or more people.',
'display' => array(
'default' => array(
'label' => 'inline',
'module' => 'entityreference',
'settings' => array(
'bypass_access' => FALSE,
'link' => FALSE,
),
'type' => 'entityreference_label',
'weight' => 2,
),
),
'entity_type' => 'log',
'field_name' => 'field_farm_log_owner',
'label' => 'Owner',
'required' => 0,
'settings' => array(
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'options',
'settings' => array(),
'type' => 'options_select',
'weight' => 8,
),
);
// Exported field_instance: 'log-farm_maintenance-field_farm_movement'.
$field_instances['log-farm_maintenance-field_farm_movement'] = array(
'bundle' => 'farm_maintenance',
@ -392,7 +426,7 @@ function farm_equipment_field_default_field_instances() {
'module' => 'field_collection',
'settings' => array(),
'type' => 'field_collection_embed',
'weight' => 3,
'weight' => 2,
),
);
@ -439,6 +473,8 @@ function farm_equipment_field_default_field_instances() {
t('Model');
t('Movement');
t('Notes');
t('Optionally assign this task to one or more people.');
t('Owner');
t('Photos');
t('Serial Number');
t('Use these fields to record a movement with this log entry. This will be used to define the location of any referenced assets. The current location of any asset is determined by the most recently completed movement log. Only the "to" field is required.');

View File

@ -39,6 +39,35 @@ function farm_equipment_field_group_info() {
);
$field_groups['group_farm_assets|log|farm_maintenance|form'] = $field_group;
$field_group = new stdClass();
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
$field_group->api_version = 1;
$field_group->identifier = 'group_farm_assignment|log|farm_maintenance|form';
$field_group->group_name = 'group_farm_assignment';
$field_group->entity_type = 'log';
$field_group->bundle = 'farm_maintenance';
$field_group->mode = 'form';
$field_group->parent_name = '';
$field_group->data = array(
'label' => 'Assignment',
'weight' => '4',
'children' => array(
0 => 'field_farm_log_owner',
),
'format_type' => 'fieldset',
'format_settings' => array(
'label' => 'Assignment',
'instance_settings' => array(
'required_fields' => 1,
'id' => '',
'classes' => 'group-farm-assignment field-group-fieldset',
'description' => '',
),
'formatter' => 'collapsed',
),
);
$field_groups['group_farm_assignment|log|farm_maintenance|form'] = $field_group;
$field_group = new stdClass();
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
$field_group->api_version = 1;
@ -111,8 +140,8 @@ function farm_equipment_field_group_info() {
'label' => 'File attachments',
'weight' => '5',
'children' => array(
0 => 'field_farm_images',
1 => 'field_farm_files',
0 => 'field_farm_files',
1 => 'field_farm_images',
),
'format_type' => 'fieldset',
'format_settings' => array(
@ -199,7 +228,7 @@ function farm_equipment_field_group_info() {
$field_group->parent_name = '';
$field_group->data = array(
'label' => 'Notes',
'weight' => '4',
'weight' => '3',
'children' => array(
0 => 'field_farm_notes',
),
@ -220,6 +249,7 @@ function farm_equipment_field_group_info() {
// Translatables
// Included for use with string extractors like potx.
t('Assets');
t('Assignment');
t('Description');
t('File attachments');
t('General information');

View File

@ -19,6 +19,7 @@ dependencies[] = image
dependencies[] = log
dependencies[] = multiupload_filefield_widget
dependencies[] = multiupload_imagefield_widget
dependencies[] = options
dependencies[] = pathauto
dependencies[] = strongarm
dependencies[] = text
@ -34,6 +35,7 @@ features[field_base][] = field_farm_manufacturer
features[field_base][] = field_farm_model
features[field_base][] = field_farm_serial_number
features[field_group][] = group_farm_assets|log|farm_maintenance|form
features[field_group][] = group_farm_assignment|log|farm_maintenance|form
features[field_group][] = group_farm_description|farm_asset|equipment|form
features[field_group][] = group_farm_files|farm_asset|equipment|form
features[field_group][] = group_farm_files|log|farm_maintenance|form
@ -49,6 +51,7 @@ features[field_instance][] = farm_asset-equipment-field_farm_serial_number
features[field_instance][] = log-farm_maintenance-field_farm_asset
features[field_instance][] = log-farm_maintenance-field_farm_files
features[field_instance][] = log-farm_maintenance-field_farm_images
features[field_instance][] = log-farm_maintenance-field_farm_log_owner
features[field_instance][] = log-farm_maintenance-field_farm_movement
features[field_instance][] = log-farm_maintenance-field_farm_notes
features[log_type][] = farm_maintenance

View File

@ -581,7 +581,7 @@ function farm_livestock_field_default_field_instances() {
'module' => 'file',
'settings' => array(),
'type' => 'file_table',
'weight' => 3,
'weight' => 4,
),
),
'entity_type' => 'log',
@ -627,7 +627,7 @@ function farm_livestock_field_default_field_instances() {
'colorbox_node_style_first' => 'large',
),
'type' => 'colorbox',
'weight' => 2,
'weight' => 3,
),
),
'entity_type' => 'log',
@ -657,6 +657,40 @@ function farm_livestock_field_default_field_instances() {
),
);
// Exported field_instance: 'log-farm_medical-field_farm_log_owner'.
$field_instances['log-farm_medical-field_farm_log_owner'] = array(
'bundle' => 'farm_medical',
'default_value' => NULL,
'deleted' => 0,
'description' => 'Optionally assign this task to one or more people.',
'display' => array(
'default' => array(
'label' => 'inline',
'module' => 'entityreference',
'settings' => array(
'bypass_access' => FALSE,
'link' => FALSE,
),
'type' => 'entityreference_label',
'weight' => 2,
),
),
'entity_type' => 'log',
'field_name' => 'field_farm_log_owner',
'label' => 'Owner',
'required' => 0,
'settings' => array(
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'options',
'settings' => array(),
'type' => 'options_select',
'weight' => 8,
),
);
// Exported field_instance: 'log-farm_medical-field_farm_movement'.
$field_instances['log-farm_medical-field_farm_movement'] = array(
'bundle' => 'farm_medical',
@ -686,7 +720,7 @@ function farm_livestock_field_default_field_instances() {
'module' => 'field_collection',
'settings' => array(),
'type' => 'field_collection_embed',
'weight' => 2,
'weight' => 1,
),
);
@ -742,6 +776,8 @@ function farm_livestock_field_default_field_instances() {
t('Movement');
t('Nickname(s)');
t('Notes');
t('Optionally assign this task to one or more people.');
t('Owner');
t('Parent(s)');
t('Photos');
t('Sex');

View File

@ -10,6 +10,35 @@
function farm_livestock_field_group_info() {
$field_groups = array();
$field_group = new stdClass();
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
$field_group->api_version = 1;
$field_group->identifier = 'group_farm_assignment|log|farm_medical|form';
$field_group->group_name = 'group_farm_assignment';
$field_group->entity_type = 'log';
$field_group->bundle = 'farm_medical';
$field_group->mode = 'form';
$field_group->parent_name = '';
$field_group->data = array(
'label' => 'Assignment',
'weight' => '3',
'children' => array(
0 => 'field_farm_log_owner',
),
'format_type' => 'fieldset',
'format_settings' => array(
'label' => 'Assignment',
'instance_settings' => array(
'required_fields' => 1,
'id' => '',
'classes' => 'group-farm-assignment field-group-fieldset',
'description' => '',
),
'formatter' => 'collapsed',
),
);
$field_groups['group_farm_assignment|log|farm_medical|form'] = $field_group;
$field_group = new stdClass();
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
$field_group->api_version = 1;
@ -232,7 +261,7 @@ function farm_livestock_field_group_info() {
$field_group->parent_name = '';
$field_group->data = array(
'label' => 'Notes',
'weight' => '3',
'weight' => '2',
'children' => array(
0 => 'field_farm_notes',
),
@ -252,6 +281,7 @@ function farm_livestock_field_group_info() {
// Translatables
// Included for use with string extractors like potx.
t('Assignment');
t('Description');
t('File attachments');
t('General information');

View File

@ -46,6 +46,7 @@ features[field_base][] = field_farm_animal_tag_id
features[field_base][] = field_farm_animal_tag_location
features[field_base][] = field_farm_animal_tag_type
features[field_base][] = field_farm_animal_type
features[field_group][] = group_farm_assignment|log|farm_medical|form
features[field_group][] = group_farm_description|farm_asset|animal|form
features[field_group][] = group_farm_files|farm_asset|animal|form
features[field_group][] = group_farm_files|log|farm_medical|form
@ -71,6 +72,7 @@ features[field_instance][] = field_collection_item-field_farm_animal_tag-field_f
features[field_instance][] = log-farm_medical-field_farm_asset
features[field_instance][] = log-farm_medical-field_farm_files
features[field_instance][] = log-farm_medical-field_farm_images
features[field_instance][] = log-farm_medical-field_farm_log_owner
features[field_instance][] = log-farm_medical-field_farm_movement
features[field_instance][] = log-farm_medical-field_farm_notes
features[log_type][] = farm_medical

View File

@ -84,6 +84,40 @@ function farm_livestock_eggs_field_default_field_instances() {
),
);
// Exported field_instance: 'log-farm_eggs-field_farm_log_owner'.
$field_instances['log-farm_eggs-field_farm_log_owner'] = array(
'bundle' => 'farm_eggs',
'default_value' => NULL,
'deleted' => 0,
'description' => 'Optionally assign this task to one or more people.',
'display' => array(
'default' => array(
'label' => 'inline',
'module' => 'entityreference',
'settings' => array(
'bypass_access' => FALSE,
'link' => FALSE,
),
'type' => 'entityreference_label',
'weight' => 4,
),
),
'entity_type' => 'log',
'field_name' => 'field_farm_log_owner',
'label' => 'Owner',
'required' => 0,
'settings' => array(
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'options',
'settings' => array(),
'type' => 'options_select',
'weight' => 5,
),
);
// Exported field_instance: 'log-farm_eggs-field_farm_notes'.
$field_instances['log-farm_eggs-field_farm_notes'] = array(
'bundle' => 'farm_eggs',
@ -123,6 +157,8 @@ function farm_livestock_eggs_field_default_field_instances() {
t('Group');
t('How many eggs were collected?');
t('Notes');
t('Optionally assign this task to one or more people.');
t('Owner');
t('Quantity');
t('What group/flock were these eggs collected from?');

View File

@ -10,6 +10,35 @@
function farm_livestock_eggs_field_group_info() {
$field_groups = array();
$field_group = new stdClass();
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
$field_group->api_version = 1;
$field_group->identifier = 'group_farm_assignment|log|farm_eggs|form';
$field_group->group_name = 'group_farm_assignment';
$field_group->entity_type = 'log';
$field_group->bundle = 'farm_eggs';
$field_group->mode = 'form';
$field_group->parent_name = '';
$field_group->data = array(
'label' => 'Assignment',
'weight' => '1',
'children' => array(
0 => 'field_farm_log_owner',
),
'format_type' => 'fieldset',
'format_settings' => array(
'label' => 'Assignment',
'instance_settings' => array(
'required_fields' => 1,
'id' => '',
'classes' => 'group-farm-assignment field-group-fieldset',
'description' => '',
),
'formatter' => 'collapsed',
),
);
$field_groups['group_farm_assignment|log|farm_eggs|form'] = $field_group;
$field_group = new stdClass();
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
$field_group->api_version = 1;
@ -23,8 +52,8 @@ function farm_livestock_eggs_field_group_info() {
'label' => 'General information',
'weight' => '0',
'children' => array(
0 => 'field_farm_egg_qty',
1 => 'field_farm_animal_group',
0 => 'field_farm_animal_group',
1 => 'field_farm_egg_qty',
2 => 'timestamp',
),
'format_type' => 'fieldset',
@ -71,6 +100,7 @@ function farm_livestock_eggs_field_group_info() {
// Translatables
// Included for use with string extractors like potx.
t('Assignment');
t('General information');
t('Notes');

View File

@ -5,6 +5,7 @@ package = farmOS
dependencies[] = ctools
dependencies[] = date
dependencies[] = entity
dependencies[] = entityreference
dependencies[] = farm_fields
dependencies[] = farm_livestock
dependencies[] = features
@ -21,10 +22,12 @@ features[ctools][] = field_group:field_group:1
features[ctools][] = views:views_default:3.0
features[features_api][] = api:2
features[field_base][] = field_farm_egg_qty
features[field_group][] = group_farm_assignment|log|farm_eggs|form
features[field_group][] = group_farm_general|log|farm_eggs|form
features[field_group][] = group_farm_notes|log|farm_eggs|form
features[field_instance][] = log-farm_eggs-field_farm_animal_group
features[field_instance][] = log-farm_eggs-field_farm_egg_qty
features[field_instance][] = log-farm_eggs-field_farm_log_owner
features[field_instance][] = log-farm_eggs-field_farm_notes
features[log_type][] = farm_eggs
features[views_view][] = farm_log_eggs

View File

@ -95,7 +95,7 @@ function farm_log_activity_field_default_field_instances() {
'module' => 'file',
'settings' => array(),
'type' => 'file_table',
'weight' => 5,
'weight' => 6,
),
),
'entity_type' => 'log',
@ -135,7 +135,7 @@ function farm_log_activity_field_default_field_instances() {
'map_layer_preset' => 'farm_map_geofield_formatter:openlayers_geofield_layer_formatter',
),
'type' => 'openlayers_geofield',
'weight' => 6,
'weight' => 7,
),
),
'entity_type' => 'log',
@ -201,7 +201,7 @@ function farm_log_activity_field_default_field_instances() {
'colorbox_node_style_first' => 'large',
),
'type' => 'colorbox',
'weight' => 4,
'weight' => 5,
),
),
'entity_type' => 'log',
@ -262,6 +262,40 @@ function farm_log_activity_field_default_field_instances() {
),
);
// Exported field_instance: 'log-farm_activity-field_farm_log_owner'.
$field_instances['log-farm_activity-field_farm_log_owner'] = array(
'bundle' => 'farm_activity',
'default_value' => NULL,
'deleted' => 0,
'description' => 'Optionally assign this task to one or more people.',
'display' => array(
'default' => array(
'label' => 'inline',
'module' => 'entityreference',
'settings' => array(
'bypass_access' => FALSE,
'link' => FALSE,
),
'type' => 'entityreference_label',
'weight' => 4,
),
),
'entity_type' => 'log',
'field_name' => 'field_farm_log_owner',
'label' => 'Owner',
'required' => 0,
'settings' => array(
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'options',
'settings' => array(),
'type' => 'options_select',
'weight' => 9,
),
);
// Exported field_instance: 'log-farm_activity-field_farm_movement'.
$field_instances['log-farm_activity-field_farm_movement'] = array(
'bundle' => 'farm_activity',
@ -276,7 +310,7 @@ function farm_log_activity_field_default_field_instances() {
'view_mode' => 'full',
),
'type' => 'field_collection_fields',
'weight' => 7,
'weight' => 8,
),
),
'entity_type' => 'log',
@ -338,6 +372,8 @@ function farm_log_activity_field_default_field_instances() {
t('Log category');
t('Movement');
t('Notes');
t('Optionally assign this task to one or more people.');
t('Owner');
t('Photos');
t('This field is optional. It allows you to store geospatial data along with this activity.');
t('Use these fields to record a movement with this log entry. This will be used to define the location of any referenced assets. The current location of any asset is determined by the most recently completed movement log. Only the "to" field is required.');

View File

@ -68,6 +68,35 @@ function farm_log_activity_field_group_info() {
);
$field_groups['group_farm_assets|log|farm_activity|form'] = $field_group;
$field_group = new stdClass();
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
$field_group->api_version = 1;
$field_group->identifier = 'group_farm_assignment|log|farm_activity|form';
$field_group->group_name = 'group_farm_assignment';
$field_group->entity_type = 'log';
$field_group->bundle = 'farm_activity';
$field_group->mode = 'form';
$field_group->parent_name = '';
$field_group->data = array(
'label' => 'Assignment',
'weight' => '7',
'children' => array(
0 => 'field_farm_log_owner',
),
'format_type' => 'fieldset',
'format_settings' => array(
'label' => 'Assignment',
'instance_settings' => array(
'required_fields' => 1,
'id' => '',
'classes' => 'group-farm-assignment field-group-fieldset',
'description' => '',
),
'formatter' => 'collapsed',
),
);
$field_groups['group_farm_assignment|log|farm_activity|form'] = $field_group;
$field_group = new stdClass();
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
$field_group->api_version = 1;
@ -108,7 +137,7 @@ function farm_log_activity_field_group_info() {
$field_group->parent_name = '';
$field_group->data = array(
'label' => 'File attachments',
'weight' => '7',
'weight' => '8',
'children' => array(
0 => 'field_farm_files',
1 => 'field_farm_images',
@ -189,6 +218,7 @@ function farm_log_activity_field_group_info() {
// Included for use with string extractors like potx.
t('Areas');
t('Assets');
t('Assignment');
t('Category');
t('File attachments');
t('General information');

View File

@ -36,6 +36,7 @@ features[ctools][] = views:views_default:3.0
features[features_api][] = api:2
features[field_group][] = group_farm_areas|log|farm_activity|form
features[field_group][] = group_farm_assets|log|farm_activity|form
features[field_group][] = group_farm_assignment|log|farm_activity|form
features[field_group][] = group_farm_category|log|farm_activity|form
features[field_group][] = group_farm_files|log|farm_activity|form
features[field_group][] = group_farm_general|log|farm_activity|form
@ -46,6 +47,7 @@ features[field_instance][] = log-farm_activity-field_farm_files
features[field_instance][] = log-farm_activity-field_farm_geofield
features[field_instance][] = log-farm_activity-field_farm_images
features[field_instance][] = log-farm_activity-field_farm_log_category
features[field_instance][] = log-farm_activity-field_farm_log_owner
features[field_instance][] = log-farm_activity-field_farm_movement
features[field_instance][] = log-farm_activity-field_farm_notes
features[log_type][] = farm_activity

View File

@ -69,7 +69,7 @@ function farm_log_harvest_field_default_field_instances() {
'module' => 'file',
'settings' => array(),
'type' => 'file_table',
'weight' => 6,
'weight' => 7,
),
'token' => array(
'label' => 'above',
@ -115,7 +115,7 @@ function farm_log_harvest_field_default_field_instances() {
'map_layer_preset' => 'farm_map_geofield_formatter:openlayers_geofield_layer_formatter',
),
'type' => 'openlayers_geofield',
'weight' => 7,
'weight' => 8,
),
'token' => array(
'label' => 'above',
@ -162,7 +162,7 @@ function farm_log_harvest_field_default_field_instances() {
'use_geocoder' => 1,
),
'type' => 'openlayers_geofield',
'weight' => 4,
'weight' => 3,
),
);
@ -187,7 +187,7 @@ function farm_log_harvest_field_default_field_instances() {
'colorbox_node_style_first' => 'large',
),
'type' => 'colorbox',
'weight' => 5,
'weight' => 6,
),
'token' => array(
'label' => 'above',
@ -254,6 +254,40 @@ function farm_log_harvest_field_default_field_instances() {
),
);
// Exported field_instance: 'log-farm_harvest-field_farm_log_owner'.
$field_instances['log-farm_harvest-field_farm_log_owner'] = array(
'bundle' => 'farm_harvest',
'default_value' => NULL,
'deleted' => 0,
'description' => 'Optionally assign this task to one or more people.',
'display' => array(
'default' => array(
'label' => 'inline',
'module' => 'entityreference',
'settings' => array(
'bypass_access' => FALSE,
'link' => FALSE,
),
'type' => 'entityreference_label',
'weight' => 5,
),
),
'entity_type' => 'log',
'field_name' => 'field_farm_log_owner',
'label' => 'Owner',
'required' => 0,
'settings' => array(
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'options',
'settings' => array(),
'type' => 'options_select',
'weight' => 10,
),
);
// Exported field_instance: 'log-farm_harvest-field_farm_lot_number'.
$field_instances['log-farm_harvest-field_farm_lot_number'] = array(
'bundle' => 'farm_harvest',
@ -302,7 +336,7 @@ function farm_log_harvest_field_default_field_instances() {
'view_mode' => 'full',
),
'type' => 'field_collection_fields',
'weight' => 8,
'weight' => 9,
),
),
'entity_type' => 'log',
@ -317,7 +351,7 @@ function farm_log_harvest_field_default_field_instances() {
'module' => 'field_collection',
'settings' => array(),
'type' => 'field_collection_embed',
'weight' => 5,
'weight' => 4,
),
);
@ -396,7 +430,7 @@ function farm_log_harvest_field_default_field_instances() {
'module' => 'field_collection',
'settings' => array(),
'type' => 'field_collection_embed',
'weight' => 3,
'weight' => 2,
),
);
@ -411,6 +445,8 @@ function farm_log_harvest_field_default_field_instances() {
t('Lot number');
t('Movement');
t('Notes');
t('Optionally assign this task to one or more people.');
t('Owner');
t('Photos');
t('Quantity');
t('This field is optional. It allows you to store geospatial data along with this harvest.');

View File

@ -21,7 +21,7 @@ function farm_log_harvest_field_group_info() {
$field_group->parent_name = '';
$field_group->data = array(
'label' => 'Assets',
'weight' => '2',
'weight' => '1',
'children' => array(
0 => 'field_farm_asset',
),
@ -39,6 +39,35 @@ function farm_log_harvest_field_group_info() {
);
$field_groups['group_farm_assets|log|farm_harvest|form'] = $field_group;
$field_group = new stdClass();
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
$field_group->api_version = 1;
$field_group->identifier = 'group_farm_assignment|log|farm_harvest|form';
$field_group->group_name = 'group_farm_assignment';
$field_group->entity_type = 'log';
$field_group->bundle = 'farm_harvest';
$field_group->mode = 'form';
$field_group->parent_name = '';
$field_group->data = array(
'label' => 'Assignment',
'weight' => '7',
'children' => array(
0 => 'field_farm_log_owner',
),
'format_type' => 'fieldset',
'format_settings' => array(
'label' => 'Assignment',
'instance_settings' => array(
'required_fields' => 1,
'id' => '',
'classes' => 'group-farm-assignment field-group-fieldset',
'description' => '',
),
'formatter' => 'collapsed',
),
);
$field_groups['group_farm_assignment|log|farm_harvest|form'] = $field_group;
$field_group = new stdClass();
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
$field_group->api_version = 1;
@ -50,7 +79,7 @@ function farm_log_harvest_field_group_info() {
$field_group->parent_name = '';
$field_group->data = array(
'label' => 'Category',
'weight' => '7',
'weight' => '6',
'children' => array(
0 => 'field_farm_log_category',
),
@ -139,7 +168,7 @@ function farm_log_harvest_field_group_info() {
$field_group->parent_name = '';
$field_group->data = array(
'label' => 'Notes',
'weight' => '6',
'weight' => '5',
'children' => array(
0 => 'field_farm_notes',
),
@ -160,6 +189,7 @@ function farm_log_harvest_field_group_info() {
// Translatables
// Included for use with string extractors like potx.
t('Assets');
t('Assignment');
t('Category');
t('File attachments');
t('General information');

View File

@ -35,6 +35,7 @@ features[ctools][] = field_group:field_group:1
features[ctools][] = views:views_default:3.0
features[features_api][] = api:2
features[field_group][] = group_farm_assets|log|farm_harvest|form
features[field_group][] = group_farm_assignment|log|farm_harvest|form
features[field_group][] = group_farm_category|log|farm_harvest|form
features[field_group][] = group_farm_files|log|farm_harvest|form
features[field_group][] = group_farm_general|log|farm_harvest|form
@ -44,6 +45,7 @@ features[field_instance][] = log-farm_harvest-field_farm_files
features[field_instance][] = log-farm_harvest-field_farm_geofield
features[field_instance][] = log-farm_harvest-field_farm_images
features[field_instance][] = log-farm_harvest-field_farm_log_category
features[field_instance][] = log-farm_harvest-field_farm_log_owner
features[field_instance][] = log-farm_harvest-field_farm_lot_number
features[field_instance][] = log-farm_harvest-field_farm_movement
features[field_instance][] = log-farm_harvest-field_farm_notes

View File

@ -155,7 +155,7 @@ function farm_log_input_field_default_field_instances() {
'module' => 'file',
'settings' => array(),
'type' => 'file_table',
'weight' => 12,
'weight' => 13,
),
'token' => array(
'label' => 'above',
@ -201,7 +201,7 @@ function farm_log_input_field_default_field_instances() {
'map_layer_preset' => 'farm_map_geofield_formatter:openlayers_geofield_layer_formatter',
),
'type' => 'openlayers_geofield',
'weight' => 13,
'weight' => 14,
),
'token' => array(
'label' => 'above',
@ -248,7 +248,7 @@ function farm_log_input_field_default_field_instances() {
'use_geocoder' => 1,
),
'type' => 'openlayers_geofield',
'weight' => 5,
'weight' => 4,
),
);
@ -273,7 +273,7 @@ function farm_log_input_field_default_field_instances() {
'colorbox_node_style_first' => 'large',
),
'type' => 'colorbox',
'weight' => 11,
'weight' => 12,
),
'token' => array(
'label' => 'above',
@ -460,6 +460,40 @@ function farm_log_input_field_default_field_instances() {
),
);
// Exported field_instance: 'log-farm_input-field_farm_log_owner'.
$field_instances['log-farm_input-field_farm_log_owner'] = array(
'bundle' => 'farm_input',
'default_value' => NULL,
'deleted' => 0,
'description' => 'Optionally assign this task to one or more people.',
'display' => array(
'default' => array(
'label' => 'inline',
'module' => 'entityreference',
'settings' => array(
'bypass_access' => FALSE,
'link' => FALSE,
),
'type' => 'entityreference_label',
'weight' => 11,
),
),
'entity_type' => 'log',
'field_name' => 'field_farm_log_owner',
'label' => 'Owner',
'required' => 0,
'settings' => array(
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'options',
'settings' => array(),
'type' => 'options_select',
'weight' => 14,
),
);
// Exported field_instance: 'log-farm_input-field_farm_lot_number'.
$field_instances['log-farm_input-field_farm_lot_number'] = array(
'bundle' => 'farm_input',
@ -548,7 +582,7 @@ function farm_log_input_field_default_field_instances() {
'view_mode' => 'full',
),
'type' => 'field_collection_fields',
'weight' => 14,
'weight' => 15,
),
),
'entity_type' => 'log',
@ -563,7 +597,7 @@ function farm_log_input_field_default_field_instances() {
'module' => 'field_collection',
'settings' => array(),
'type' => 'field_collection_embed',
'weight' => 6,
'weight' => 5,
),
);
@ -642,7 +676,7 @@ function farm_log_input_field_default_field_instances() {
'module' => 'field_collection',
'settings' => array(),
'type' => 'field_collection_embed',
'weight' => 4,
'weight' => 3,
),
);
@ -662,6 +696,8 @@ function farm_log_input_field_default_field_instances() {
t('Material');
t('Movement');
t('Notes');
t('Optionally assign this task to one or more people.');
t('Owner');
t('Photos');
t('Purpose');
t('Quantity');

View File

@ -21,7 +21,7 @@ function farm_log_input_field_group_info() {
$field_group->parent_name = '';
$field_group->data = array(
'label' => 'Areas',
'weight' => '3',
'weight' => '2',
'children' => array(
0 => 'field_farm_area',
),
@ -50,7 +50,7 @@ function farm_log_input_field_group_info() {
$field_group->parent_name = '';
$field_group->data = array(
'label' => 'Assets',
'weight' => '2',
'weight' => '1',
'children' => array(
0 => 'field_farm_asset',
),
@ -68,6 +68,35 @@ function farm_log_input_field_group_info() {
);
$field_groups['group_farm_assets|log|farm_input|form'] = $field_group;
$field_group = new stdClass();
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
$field_group->api_version = 1;
$field_group->identifier = 'group_farm_assignment|log|farm_input|form';
$field_group->group_name = 'group_farm_assignment';
$field_group->entity_type = 'log';
$field_group->bundle = 'farm_input';
$field_group->mode = 'form';
$field_group->parent_name = '';
$field_group->data = array(
'label' => 'Assignment',
'weight' => '8',
'children' => array(
0 => 'field_farm_log_owner',
),
'format_type' => 'fieldset',
'format_settings' => array(
'label' => 'Assignment',
'instance_settings' => array(
'required_fields' => 1,
'id' => '',
'classes' => 'group-farm-assignment field-group-fieldset',
'description' => '',
),
'formatter' => 'collapsed',
),
);
$field_groups['group_farm_assignment|log|farm_input|form'] = $field_group;
$field_group = new stdClass();
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
$field_group->api_version = 1;
@ -79,7 +108,7 @@ function farm_log_input_field_group_info() {
$field_group->parent_name = '';
$field_group->data = array(
'label' => 'Category',
'weight' => '8',
'weight' => '7',
'children' => array(
0 => 'field_farm_log_category',
),
@ -173,7 +202,7 @@ function farm_log_input_field_group_info() {
$field_group->parent_name = '';
$field_group->data = array(
'label' => 'Notes',
'weight' => '7',
'weight' => '6',
'children' => array(
0 => 'field_farm_notes',
),
@ -195,6 +224,7 @@ function farm_log_input_field_group_info() {
// Included for use with string extractors like potx.
t('Areas');
t('Assets');
t('Assignment');
t('Category');
t('File attachments');
t('General information');

View File

@ -43,6 +43,7 @@ features[field_base][] = field_farm_input_source
features[field_base][] = field_farm_material
features[field_group][] = group_farm_areas|log|farm_input|form
features[field_group][] = group_farm_assets|log|farm_input|form
features[field_group][] = group_farm_assignment|log|farm_input|form
features[field_group][] = group_farm_category|log|farm_input|form
features[field_group][] = group_farm_files|log|farm_input|form
features[field_group][] = group_farm_general|log|farm_input|form
@ -57,6 +58,7 @@ features[field_instance][] = log-farm_input-field_farm_input_method
features[field_instance][] = log-farm_input-field_farm_input_purpose
features[field_instance][] = log-farm_input-field_farm_input_source
features[field_instance][] = log-farm_input-field_farm_log_category
features[field_instance][] = log-farm_input-field_farm_log_owner
features[field_instance][] = log-farm_input-field_farm_lot_number
features[field_instance][] = log-farm_input-field_farm_material
features[field_instance][] = log-farm_input-field_farm_movement

View File

@ -95,7 +95,7 @@ function farm_log_observation_field_default_field_instances() {
'module' => 'file',
'settings' => array(),
'type' => 'file_table',
'weight' => 6,
'weight' => 7,
),
),
'entity_type' => 'log',
@ -135,7 +135,7 @@ function farm_log_observation_field_default_field_instances() {
'map_layer_preset' => 'farm_map_geofield_formatter:openlayers_geofield_layer_formatter',
),
'type' => 'openlayers_geofield',
'weight' => 7,
'weight' => 8,
),
),
'entity_type' => 'log',
@ -201,7 +201,7 @@ function farm_log_observation_field_default_field_instances() {
'colorbox_node_style_first' => 'large',
),
'type' => 'colorbox',
'weight' => 5,
'weight' => 6,
),
),
'entity_type' => 'log',
@ -262,6 +262,40 @@ function farm_log_observation_field_default_field_instances() {
),
);
// Exported field_instance: 'log-farm_observation-field_farm_log_owner'.
$field_instances['log-farm_observation-field_farm_log_owner'] = array(
'bundle' => 'farm_observation',
'default_value' => NULL,
'deleted' => 0,
'description' => 'Optionally assign this task to one or more people.',
'display' => array(
'default' => array(
'label' => 'inline',
'module' => 'entityreference',
'settings' => array(
'bypass_access' => FALSE,
'link' => FALSE,
),
'type' => 'entityreference_label',
'weight' => 5,
),
),
'entity_type' => 'log',
'field_name' => 'field_farm_log_owner',
'label' => 'Owner',
'required' => 0,
'settings' => array(
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'options',
'settings' => array(),
'type' => 'options_select',
'weight' => 11,
),
);
// Exported field_instance: 'log-farm_observation-field_farm_movement'.
$field_instances['log-farm_observation-field_farm_movement'] = array(
'bundle' => 'farm_observation',
@ -276,7 +310,7 @@ function farm_log_observation_field_default_field_instances() {
'view_mode' => 'full',
),
'type' => 'field_collection_fields',
'weight' => 8,
'weight' => 9,
),
),
'entity_type' => 'log',
@ -371,7 +405,9 @@ function farm_log_observation_field_default_field_instances() {
t('Log category');
t('Movement');
t('Notes');
t('Optionally assign this task to one or more people.');
t('Optionally, use this quantity field to record an observed quantity.');
t('Owner');
t('Photos');
t('Quantity');
t('This field is optional. It allows you to store geospatial data along with this observation.');

View File

@ -68,6 +68,35 @@ function farm_log_observation_field_group_info() {
);
$field_groups['group_farm_assets|log|farm_observation|form'] = $field_group;
$field_group = new stdClass();
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
$field_group->api_version = 1;
$field_group->identifier = 'group_farm_assignment|log|farm_observation|form';
$field_group->group_name = 'group_farm_assignment';
$field_group->entity_type = 'log';
$field_group->bundle = 'farm_observation';
$field_group->mode = 'form';
$field_group->parent_name = '';
$field_group->data = array(
'label' => 'Assignment',
'weight' => '8',
'children' => array(
0 => 'field_farm_log_owner',
),
'format_type' => 'fieldset',
'format_settings' => array(
'label' => 'Assignment',
'instance_settings' => array(
'required_fields' => 1,
'id' => '',
'classes' => 'group-farm-assignment field-group-fieldset',
'description' => '',
),
'formatter' => 'collapsed',
),
);
$field_groups['group_farm_assignment|log|farm_observation|form'] = $field_group;
$field_group = new stdClass();
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
$field_group->api_version = 1;
@ -108,7 +137,7 @@ function farm_log_observation_field_group_info() {
$field_group->parent_name = '';
$field_group->data = array(
'label' => 'File attachments',
'weight' => '8',
'weight' => '9',
'children' => array(
0 => 'field_farm_files',
1 => 'field_farm_images',
@ -189,6 +218,7 @@ function farm_log_observation_field_group_info() {
// Included for use with string extractors like potx.
t('Areas');
t('Assets');
t('Assignment');
t('Category');
t('File attachments');
t('General information');

View File

@ -37,6 +37,7 @@ features[ctools][] = views:views_default:3.0
features[features_api][] = api:2
features[field_group][] = group_farm_areas|log|farm_observation|form
features[field_group][] = group_farm_assets|log|farm_observation|form
features[field_group][] = group_farm_assignment|log|farm_observation|form
features[field_group][] = group_farm_category|log|farm_observation|form
features[field_group][] = group_farm_files|log|farm_observation|form
features[field_group][] = group_farm_general|log|farm_observation|form
@ -47,6 +48,7 @@ features[field_instance][] = log-farm_observation-field_farm_files
features[field_instance][] = log-farm_observation-field_farm_geofield
features[field_instance][] = log-farm_observation-field_farm_images
features[field_instance][] = log-farm_observation-field_farm_log_category
features[field_instance][] = log-farm_observation-field_farm_log_owner
features[field_instance][] = log-farm_observation-field_farm_movement
features[field_instance][] = log-farm_observation-field_farm_notes
features[field_instance][] = log-farm_observation-field_farm_quantity

View File

@ -53,7 +53,7 @@ function farm_soil_test_field_default_field_instances() {
'module' => 'file',
'settings' => array(),
'type' => 'file_table',
'weight' => 6,
'weight' => 7,
),
),
'entity_type' => 'log',
@ -99,7 +99,7 @@ function farm_soil_test_field_default_field_instances() {
'colorbox_node_style_first' => 'large',
),
'type' => 'colorbox',
'weight' => 5,
'weight' => 6,
),
),
'entity_type' => 'log',
@ -129,6 +129,40 @@ function farm_soil_test_field_default_field_instances() {
),
);
// Exported field_instance: 'log-farm_soil_test-field_farm_log_owner'.
$field_instances['log-farm_soil_test-field_farm_log_owner'] = array(
'bundle' => 'farm_soil_test',
'default_value' => NULL,
'deleted' => 0,
'description' => 'Optionally assign this task to one or more people.',
'display' => array(
'default' => array(
'label' => 'inline',
'module' => 'entityreference',
'settings' => array(
'bypass_access' => FALSE,
'link' => FALSE,
),
'type' => 'entityreference_label',
'weight' => 5,
),
),
'entity_type' => 'log',
'field_name' => 'field_farm_log_owner',
'label' => 'Owner',
'required' => 0,
'settings' => array(
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'options',
'settings' => array(),
'type' => 'options_select',
'weight' => 9,
),
);
// Exported field_instance: 'log-farm_soil_test-field_farm_notes'.
$field_instances['log-farm_soil_test-field_farm_notes'] = array(
'bundle' => 'farm_soil_test',
@ -299,6 +333,8 @@ function farm_soil_test_field_default_field_instances() {
t('Laboratory');
t('List the names of soils that are included in this sample. For soil maps and soil names, visit http://websoilsurvey.nrcs.usda.gov/app');
t('Notes');
t('Optionally assign this task to one or more people.');
t('Owner');
t('Photos');
t('Sample Points');
t('Soil Names');

View File

@ -10,6 +10,35 @@
function farm_soil_test_field_group_info() {
$field_groups = array();
$field_group = new stdClass();
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
$field_group->api_version = 1;
$field_group->identifier = 'group_farm_assignment|log|farm_soil_test|form';
$field_group->group_name = 'group_farm_assignment';
$field_group->entity_type = 'log';
$field_group->bundle = 'farm_soil_test';
$field_group->mode = 'form';
$field_group->parent_name = '';
$field_group->data = array(
'label' => 'Assignment',
'weight' => '3',
'children' => array(
0 => 'field_farm_log_owner',
),
'format_type' => 'fieldset',
'format_settings' => array(
'label' => 'Assignment',
'instance_settings' => array(
'required_fields' => 1,
'id' => '',
'classes' => 'group-farm-assignment field-group-fieldset',
'description' => '',
),
'formatter' => 'collapsed',
),
);
$field_groups['group_farm_assignment|log|farm_soil_test|form'] = $field_group;
$field_group = new stdClass();
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
$field_group->api_version = 1;
@ -21,7 +50,7 @@ function farm_soil_test_field_group_info() {
$field_group->parent_name = '';
$field_group->data = array(
'label' => 'File attachments',
'weight' => '6',
'weight' => '4',
'children' => array(
0 => 'field_farm_files',
1 => 'field_farm_images',
@ -81,7 +110,7 @@ function farm_soil_test_field_group_info() {
$field_group->parent_name = '';
$field_group->data = array(
'label' => 'Notes',
'weight' => '5',
'weight' => '2',
'children' => array(
0 => 'field_farm_notes',
),
@ -113,8 +142,8 @@ function farm_soil_test_field_group_info() {
'weight' => '1',
'children' => array(
0 => 'field_farm_area',
1 => 'field_farm_soil_sample_points',
2 => 'field_farm_soil_names',
1 => 'field_farm_soil_names',
2 => 'field_farm_soil_sample_points',
),
'format_type' => 'fieldset',
'format_settings' => array(
@ -131,6 +160,7 @@ function farm_soil_test_field_group_info() {
// Translatables
// Included for use with string extractors like potx.
t('Assignment');
t('File attachments');
t('General information');
t('Notes');

View File

@ -6,6 +6,7 @@ dependencies[] = colorbox
dependencies[] = ctools
dependencies[] = date
dependencies[] = entity
dependencies[] = entityreference
dependencies[] = farm_area
dependencies[] = farm_fields
dependencies[] = farm_map
@ -28,6 +29,7 @@ features[ctools][] = field_group:field_group:1
features[ctools][] = views:views_default:3.0
features[features_api][] = api:2
features[field_base][] = field_farm_soil_lab
features[field_group][] = group_farm_assignment|log|farm_soil_test|form
features[field_group][] = group_farm_files|log|farm_soil_test|form
features[field_group][] = group_farm_general|log|farm_soil_test|form
features[field_group][] = group_farm_notes|log|farm_soil_test|form
@ -35,6 +37,7 @@ features[field_group][] = group_farm_soil|log|farm_soil_test|form
features[field_instance][] = log-farm_soil_test-field_farm_area
features[field_instance][] = log-farm_soil_test-field_farm_files
features[field_instance][] = log-farm_soil_test-field_farm_images
features[field_instance][] = log-farm_soil_test-field_farm_log_owner
features[field_instance][] = log-farm_soil_test-field_farm_notes
features[field_instance][] = log-farm_soil_test-field_farm_soil_lab
features[field_instance][] = log-farm_soil_test-field_farm_soil_names