mirror of
https://github.com/farmOS/farmOS.git
synced 2024-02-23 11:37:38 +01:00
Add new "Birth" log type to the Livestock module.
This commit is contained in:
parent
595258eef0
commit
e38a4ebaf9
4 changed files with 732 additions and 0 deletions
|
@ -495,6 +495,431 @@ function farm_livestock_field_default_field_instances() {
|
|||
),
|
||||
);
|
||||
|
||||
// Exported field_instance: 'log-farm_birth-field_farm_area'.
|
||||
$field_instances['log-farm_birth-field_farm_area'] = array(
|
||||
'bundle' => 'farm_birth',
|
||||
'default_value' => NULL,
|
||||
'deleted' => 0,
|
||||
'description' => 'What area(s) did this birth take place in?',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'inline',
|
||||
'module' => 'taxonomy',
|
||||
'settings' => array(),
|
||||
'type' => 'taxonomy_term_reference_link',
|
||||
'weight' => 4,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'log',
|
||||
'field_name' => 'field_farm_area',
|
||||
'label' => 'Areas',
|
||||
'required' => 0,
|
||||
'settings' => array(
|
||||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'active' => 1,
|
||||
'module' => 'options',
|
||||
'settings' => array(),
|
||||
'type' => 'options_select',
|
||||
'weight' => 20,
|
||||
),
|
||||
);
|
||||
|
||||
// Exported field_instance: 'log-farm_birth-field_farm_asset'.
|
||||
$field_instances['log-farm_birth-field_farm_asset'] = array(
|
||||
'bundle' => 'farm_birth',
|
||||
'deleted' => 0,
|
||||
'description' => 'Reference the animals that were born. Alternatively, if you just want to increase the head count of another animal record, add an inventory adjustment below.',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'inline',
|
||||
'module' => 'entityreference',
|
||||
'settings' => array(
|
||||
'bypass_access' => 0,
|
||||
'link' => 1,
|
||||
),
|
||||
'type' => 'entityreference_label',
|
||||
'weight' => 0,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'log',
|
||||
'field_name' => 'field_farm_asset',
|
||||
'label' => 'Children',
|
||||
'required' => 0,
|
||||
'settings' => array(
|
||||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'active' => 1,
|
||||
'module' => 'entityreference_view_widget',
|
||||
'settings' => array(
|
||||
'allow_duplicates' => 0,
|
||||
'close_modal' => 1,
|
||||
'pass_argument' => 1,
|
||||
'pass_arguments' => '',
|
||||
'rendered_entity' => 0,
|
||||
'view' => 'farm_asset_entityreference_view|entityreference_view_widget',
|
||||
'view_mode' => 'full',
|
||||
),
|
||||
'type' => 'entityreference_view_widget',
|
||||
'weight' => 7,
|
||||
),
|
||||
);
|
||||
|
||||
// Exported field_instance: 'log-farm_birth-field_farm_files'.
|
||||
$field_instances['log-farm_birth-field_farm_files'] = array(
|
||||
'bundle' => 'farm_birth',
|
||||
'deleted' => 0,
|
||||
'description' => '',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'above',
|
||||
'module' => 'file',
|
||||
'settings' => array(),
|
||||
'type' => 'file_table',
|
||||
'weight' => 9,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'log',
|
||||
'field_name' => 'field_farm_files',
|
||||
'label' => 'Files',
|
||||
'required' => 0,
|
||||
'settings' => array(
|
||||
'description_field' => 1,
|
||||
'file_directory' => 'farm/log/birth',
|
||||
'file_extensions' => '',
|
||||
'max_filesize' => '',
|
||||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'active' => 1,
|
||||
'module' => 'multiupload_filefield_widget',
|
||||
'settings' => array(
|
||||
'progress_indicator' => 'bar',
|
||||
),
|
||||
'type' => 'file_mfw',
|
||||
'weight' => 16,
|
||||
),
|
||||
);
|
||||
|
||||
// Exported field_instance: 'log-farm_birth-field_farm_geofield'.
|
||||
$field_instances['log-farm_birth-field_farm_geofield'] = array(
|
||||
'bundle' => 'farm_birth',
|
||||
'default_value' => NULL,
|
||||
'deleted' => 0,
|
||||
'description' => 'This field is optional. It allows you to store geospatial data along with this birth log, such as the precise location where the birth took place.',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'above',
|
||||
'module' => 'openlayers_geofield',
|
||||
'settings' => array(
|
||||
'data' => 'full',
|
||||
'map_layer_preset' => 'farm_map_geofield_formatter:openlayers_geofield_layer_formatter',
|
||||
),
|
||||
'type' => 'openlayers_geofield',
|
||||
'weight' => 10,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'log',
|
||||
'field_name' => 'field_farm_geofield',
|
||||
'label' => 'Geometry',
|
||||
'required' => 0,
|
||||
'settings' => array(
|
||||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'active' => 1,
|
||||
'module' => 'openlayers_geofield',
|
||||
'settings' => array(
|
||||
'allow_edit' => 1,
|
||||
'data_storage' => 'collection',
|
||||
'delta_handling' => 'default',
|
||||
'feature_types' => array(
|
||||
'path' => 'path',
|
||||
'point' => 'point',
|
||||
'polygon' => 'polygon',
|
||||
),
|
||||
'geocoder_field' => 'field_farm_files',
|
||||
'geocoder_handler' => 'kml',
|
||||
'handler_settings' => array(
|
||||
'google' => array(
|
||||
'all_results' => 0,
|
||||
'biasing' => array(
|
||||
'bounds' => '',
|
||||
'components' => '',
|
||||
'region' => '',
|
||||
),
|
||||
'geometry_type' => 'point',
|
||||
'reject_results' => array(
|
||||
'APPROXIMATE' => 0,
|
||||
'GEOMETRIC_CENTER' => 0,
|
||||
'RANGE_INTERPOLATED' => 0,
|
||||
'ROOFTOP' => 0,
|
||||
),
|
||||
),
|
||||
),
|
||||
'openlayers_map' => 'farm_map_geofield',
|
||||
'showInputField' => 1,
|
||||
'use_geocoder' => 1,
|
||||
),
|
||||
'type' => 'openlayers_geofield',
|
||||
'weight' => 22,
|
||||
),
|
||||
);
|
||||
|
||||
// Exported field_instance: 'log-farm_birth-field_farm_images'.
|
||||
$field_instances['log-farm_birth-field_farm_images'] = array(
|
||||
'bundle' => 'farm_birth',
|
||||
'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' => 8,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'log',
|
||||
'field_name' => 'field_farm_images',
|
||||
'label' => 'Photos',
|
||||
'required' => 0,
|
||||
'settings' => array(
|
||||
'alt_field' => 0,
|
||||
'default_image' => 0,
|
||||
'file_directory' => 'farm/log/birth',
|
||||
'file_extensions' => '',
|
||||
'max_filesize' => '',
|
||||
'max_resolution' => '',
|
||||
'min_resolution' => '',
|
||||
'title_field' => 0,
|
||||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'active' => 1,
|
||||
'module' => 'multiupload_imagefield_widget',
|
||||
'settings' => array(
|
||||
'preview_image_style' => 'thumbnail',
|
||||
'progress_indicator' => 'bar',
|
||||
),
|
||||
'type' => 'image_miw',
|
||||
'weight' => 15,
|
||||
),
|
||||
);
|
||||
|
||||
// Exported field_instance: 'log-farm_birth-field_farm_inventory'.
|
||||
$field_instances['log-farm_birth-field_farm_inventory'] = array(
|
||||
'bundle' => 'farm_birth',
|
||||
'default_value' => NULL,
|
||||
'deleted' => 0,
|
||||
'description' => 'Use this to set or adjust asset inventory levels along with this log.',
|
||||
'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_inventory',
|
||||
'label' => 'Inventory adjustments',
|
||||
'required' => 0,
|
||||
'settings' => array(
|
||||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'active' => 0,
|
||||
'module' => 'field_collection',
|
||||
'settings' => array(),
|
||||
'type' => 'field_collection_embed',
|
||||
'weight' => 18,
|
||||
),
|
||||
);
|
||||
|
||||
// Exported field_instance: 'log-farm_birth-field_farm_log_category'.
|
||||
$field_instances['log-farm_birth-field_farm_log_category'] = array(
|
||||
'bundle' => 'farm_birth',
|
||||
'default_value' => array(
|
||||
0 => array(
|
||||
'tid' => 5,
|
||||
),
|
||||
),
|
||||
'deleted' => 0,
|
||||
'description' => 'Use this to organize your logs into categories for easier searching and filtering later.',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'inline',
|
||||
'module' => 'taxonomy',
|
||||
'settings' => array(),
|
||||
'type' => 'taxonomy_term_reference_link',
|
||||
'weight' => 6,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'log',
|
||||
'field_name' => 'field_farm_log_category',
|
||||
'label' => 'Log category',
|
||||
'required' => 0,
|
||||
'settings' => array(
|
||||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'active' => 1,
|
||||
'module' => 'options',
|
||||
'settings' => array(),
|
||||
'type' => 'options_select',
|
||||
'weight' => 3,
|
||||
),
|
||||
);
|
||||
|
||||
// Exported field_instance: 'log-farm_birth-field_farm_log_owner'.
|
||||
$field_instances['log-farm_birth-field_farm_log_owner'] = array(
|
||||
'bundle' => 'farm_birth',
|
||||
'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' => 7,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'log',
|
||||
'field_name' => 'field_farm_log_owner',
|
||||
'label' => 'Assigned to',
|
||||
'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_birth-field_farm_membership'.
|
||||
$field_instances['log-farm_birth-field_farm_membership'] = array(
|
||||
'bundle' => 'farm_birth',
|
||||
'default_value' => NULL,
|
||||
'deleted' => 0,
|
||||
'description' => 'Use this field to set the group membership of any asset(s) referenced by this log.',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'inline',
|
||||
'module' => 'field_collection',
|
||||
'settings' => array(
|
||||
'view_mode' => 'full',
|
||||
),
|
||||
'type' => 'field_collection_fields',
|
||||
'weight' => 2,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'log',
|
||||
'field_name' => 'field_farm_membership',
|
||||
'label' => 'Group membership',
|
||||
'required' => 0,
|
||||
'settings' => array(
|
||||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'active' => 0,
|
||||
'module' => 'field_collection',
|
||||
'settings' => array(),
|
||||
'type' => 'field_collection_embed',
|
||||
'weight' => 9,
|
||||
),
|
||||
);
|
||||
|
||||
// Exported field_instance: 'log-farm_birth-field_farm_movement'.
|
||||
$field_instances['log-farm_birth-field_farm_movement'] = array(
|
||||
'bundle' => 'farm_birth',
|
||||
'default_value' => NULL,
|
||||
'deleted' => 0,
|
||||
'description' => '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.',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'hidden',
|
||||
'module' => 'field_collection',
|
||||
'settings' => array(
|
||||
'view_mode' => 'full',
|
||||
),
|
||||
'type' => 'field_collection_fields',
|
||||
'weight' => 1,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'log',
|
||||
'field_name' => 'field_farm_movement',
|
||||
'label' => 'Movement',
|
||||
'required' => 0,
|
||||
'settings' => array(
|
||||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'active' => 0,
|
||||
'module' => 'field_collection',
|
||||
'settings' => array(),
|
||||
'type' => 'field_collection_embed',
|
||||
'weight' => 8,
|
||||
),
|
||||
);
|
||||
|
||||
// Exported field_instance: 'log-farm_birth-field_farm_notes'.
|
||||
$field_instances['log-farm_birth-field_farm_notes'] = array(
|
||||
'bundle' => 'farm_birth',
|
||||
'default_value' => NULL,
|
||||
'deleted' => 0,
|
||||
'description' => '',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'inline',
|
||||
'module' => 'text',
|
||||
'settings' => array(),
|
||||
'type' => 'text_default',
|
||||
'weight' => 5,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'log',
|
||||
'field_name' => 'field_farm_notes',
|
||||
'label' => 'Notes',
|
||||
'required' => 0,
|
||||
'settings' => array(
|
||||
'text_processing' => 1,
|
||||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'active' => 1,
|
||||
'module' => 'text',
|
||||
'settings' => array(
|
||||
'rows' => 5,
|
||||
),
|
||||
'type' => 'text_textarea',
|
||||
'weight' => 8,
|
||||
),
|
||||
);
|
||||
|
||||
// Exported field_instance: 'log-farm_medical-field_farm_asset'.
|
||||
$field_instances['log-farm_medical-field_farm_asset'] = array(
|
||||
'bundle' => 'farm_medical',
|
||||
|
@ -792,13 +1217,17 @@ function farm_livestock_field_default_field_instances() {
|
|||
// Translatables
|
||||
// Included for use with string extractors like potx.
|
||||
t('Animals');
|
||||
t('Areas');
|
||||
t('Assigned to');
|
||||
t('Body Location');
|
||||
t('Castrated');
|
||||
t('Children');
|
||||
t('Date of birth');
|
||||
t('Description');
|
||||
t('Enter this animal asset\'s species/breed. You can manage the list of available species/breeds in the <a href="/farm/assets/animals/types">Animal Species/Breeds</a> vocabulary.');
|
||||
t('Files');
|
||||
t('Geometry');
|
||||
t('Group membership');
|
||||
t('Has this animal been castrated?');
|
||||
t('ID');
|
||||
t('ID Tag(s)');
|
||||
|
@ -812,14 +1241,18 @@ function farm_livestock_field_default_field_instances() {
|
|||
t('Optionally assign this task to one or more people.');
|
||||
t('Parent(s)');
|
||||
t('Photos');
|
||||
t('Reference the animals that were born. Alternatively, if you just want to increase the head count of another animal record, add an inventory adjustment below.');
|
||||
t('Sex');
|
||||
t('Species/breed');
|
||||
t('Specify the parent(s) of this animal.');
|
||||
t('Tag Type');
|
||||
t('This field is optional. It allows you to store geospatial data along with this birth log, such as the precise location where the birth took place.');
|
||||
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.');
|
||||
t('Use this field to set the group membership of any asset(s) referenced by this log.');
|
||||
t('Use this to organize your logs into categories for easier searching and filtering later.');
|
||||
t('Use this to set or adjust asset inventory levels along with this log.');
|
||||
t('What animals do this medical log pertain to?');
|
||||
t('What area(s) did this birth take place in?');
|
||||
|
||||
return $field_instances;
|
||||
}
|
||||
|
|
|
@ -43,6 +43,15 @@ function farm_livestock_default_farm_asset_type() {
|
|||
*/
|
||||
function farm_livestock_default_log_type() {
|
||||
$items = array();
|
||||
$items['farm_birth'] = entity_import('log_type', '{
|
||||
"type" : "farm_birth",
|
||||
"label" : "Birth",
|
||||
"weight" : 0,
|
||||
"name_pattern" : "Birth: [log:field-farm-asset]",
|
||||
"name_edit" : "0",
|
||||
"done" : "1",
|
||||
"rdf_mapping" : []
|
||||
}');
|
||||
$items['farm_medical'] = entity_import('log_type', '{
|
||||
"type" : "farm_medical",
|
||||
"label" : "Medical",
|
||||
|
|
|
@ -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_birth|form';
|
||||
$field_group->group_name = 'group_farm_assignment';
|
||||
$field_group->entity_type = 'log';
|
||||
$field_group->bundle = 'farm_birth';
|
||||
$field_group->mode = 'form';
|
||||
$field_group->parent_name = 'group_farm_general';
|
||||
$field_group->data = array(
|
||||
'label' => 'Assignment',
|
||||
'weight' => '10',
|
||||
'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_birth|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;
|
||||
|
@ -39,6 +68,35 @@ function farm_livestock_field_group_info() {
|
|||
);
|
||||
$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;
|
||||
$field_group->identifier = 'group_farm_category|log|farm_birth|form';
|
||||
$field_group->group_name = 'group_farm_category';
|
||||
$field_group->entity_type = 'log';
|
||||
$field_group->bundle = 'farm_birth';
|
||||
$field_group->mode = 'form';
|
||||
$field_group->parent_name = 'group_farm_general';
|
||||
$field_group->data = array(
|
||||
'label' => 'Category',
|
||||
'weight' => '9',
|
||||
'children' => array(
|
||||
0 => 'field_farm_log_category',
|
||||
),
|
||||
'format_type' => 'fieldset',
|
||||
'format_settings' => array(
|
||||
'label' => 'Category',
|
||||
'instance_settings' => array(
|
||||
'required_fields' => 1,
|
||||
'id' => '',
|
||||
'classes' => 'group-farm-category field-group-fieldset',
|
||||
'description' => '',
|
||||
),
|
||||
'formatter' => 'collapsed',
|
||||
),
|
||||
);
|
||||
$field_groups['group_farm_category|log|farm_birth|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;
|
||||
|
@ -68,6 +126,34 @@ function farm_livestock_field_group_info() {
|
|||
);
|
||||
$field_groups['group_farm_category|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;
|
||||
$field_group->identifier = 'group_farm_children|log|farm_birth|form';
|
||||
$field_group->group_name = 'group_farm_children';
|
||||
$field_group->entity_type = 'log';
|
||||
$field_group->bundle = 'farm_birth';
|
||||
$field_group->mode = 'form';
|
||||
$field_group->parent_name = 'group_farm_tabs';
|
||||
$field_group->data = array(
|
||||
'label' => 'Children',
|
||||
'weight' => '5',
|
||||
'children' => array(
|
||||
0 => 'field_farm_asset',
|
||||
1 => 'field_farm_movement',
|
||||
2 => 'field_farm_membership',
|
||||
),
|
||||
'format_type' => 'field_group_easy_responsive_tabs_nav_item',
|
||||
'format_settings' => array(
|
||||
'formatter' => '',
|
||||
'instance_settings' => array(
|
||||
'classes' => 'group-farm-children field-group-field_group_easy_responsive_tabs_nav_item',
|
||||
'required_fields' => 1,
|
||||
),
|
||||
),
|
||||
);
|
||||
$field_groups['group_farm_children|log|farm_birth|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;
|
||||
|
@ -96,6 +182,33 @@ function farm_livestock_field_group_info() {
|
|||
);
|
||||
$field_groups['group_farm_files|farm_asset|animal|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_files|log|farm_birth|form';
|
||||
$field_group->group_name = 'group_farm_files';
|
||||
$field_group->entity_type = 'log';
|
||||
$field_group->bundle = 'farm_birth';
|
||||
$field_group->mode = 'form';
|
||||
$field_group->parent_name = 'group_farm_tabs';
|
||||
$field_group->data = array(
|
||||
'label' => 'Files',
|
||||
'weight' => '8',
|
||||
'children' => array(
|
||||
0 => 'field_farm_files',
|
||||
1 => 'field_farm_images',
|
||||
),
|
||||
'format_type' => 'field_group_easy_responsive_tabs_nav_item',
|
||||
'format_settings' => array(
|
||||
'formatter' => '',
|
||||
'instance_settings' => array(
|
||||
'classes' => 'group-farm-files field-group-field_group_easy_responsive_tabs_nav_item',
|
||||
'required_fields' => 1,
|
||||
),
|
||||
),
|
||||
);
|
||||
$field_groups['group_farm_files|log|farm_birth|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;
|
||||
|
@ -154,6 +267,35 @@ function farm_livestock_field_group_info() {
|
|||
);
|
||||
$field_groups['group_farm_general|farm_asset|animal|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_general|log|farm_birth|form';
|
||||
$field_group->group_name = 'group_farm_general';
|
||||
$field_group->entity_type = 'log';
|
||||
$field_group->bundle = 'farm_birth';
|
||||
$field_group->mode = 'form';
|
||||
$field_group->parent_name = 'group_farm_tabs';
|
||||
$field_group->data = array(
|
||||
'label' => 'General',
|
||||
'weight' => '4',
|
||||
'children' => array(
|
||||
0 => 'field_farm_notes',
|
||||
1 => 'timestamp',
|
||||
2 => 'group_farm_category',
|
||||
3 => 'group_farm_assignment',
|
||||
),
|
||||
'format_type' => 'field_group_easy_responsive_tabs_nav_item',
|
||||
'format_settings' => array(
|
||||
'formatter' => '',
|
||||
'instance_settings' => array(
|
||||
'classes' => 'group-farm-general field-group-field_group_easy_responsive_tabs_nav_item',
|
||||
'required_fields' => 1,
|
||||
),
|
||||
),
|
||||
);
|
||||
$field_groups['group_farm_general|log|farm_birth|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;
|
||||
|
@ -186,6 +328,35 @@ function farm_livestock_field_group_info() {
|
|||
);
|
||||
$field_groups['group_farm_general|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;
|
||||
$field_group->identifier = 'group_farm_geometry|log|farm_birth|form';
|
||||
$field_group->group_name = 'group_farm_geometry';
|
||||
$field_group->entity_type = 'log';
|
||||
$field_group->bundle = 'farm_birth';
|
||||
$field_group->mode = 'form';
|
||||
$field_group->parent_name = 'group_farm_location';
|
||||
$field_group->data = array(
|
||||
'label' => 'Geometry',
|
||||
'weight' => '21',
|
||||
'children' => array(
|
||||
0 => 'field_farm_geofield',
|
||||
),
|
||||
'format_type' => 'fieldset',
|
||||
'format_settings' => array(
|
||||
'label' => 'Geometry',
|
||||
'instance_settings' => array(
|
||||
'required_fields' => 1,
|
||||
'id' => '',
|
||||
'classes' => 'group-farm-geometry field-group-fieldset',
|
||||
'description' => '',
|
||||
),
|
||||
'formatter' => 'collapsed',
|
||||
),
|
||||
);
|
||||
$field_groups['group_farm_geometry|log|farm_birth|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;
|
||||
|
@ -244,6 +415,34 @@ function farm_livestock_field_group_info() {
|
|||
);
|
||||
$field_groups['group_farm_individual|farm_asset|animal|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_inventory|log|farm_birth|form';
|
||||
$field_group->group_name = 'group_farm_inventory';
|
||||
$field_group->entity_type = 'log';
|
||||
$field_group->bundle = 'farm_birth';
|
||||
$field_group->mode = 'form';
|
||||
$field_group->parent_name = 'group_farm_tabs';
|
||||
$field_group->data = array(
|
||||
'label' => 'Inventory',
|
||||
'weight' => '7',
|
||||
'children' => array(
|
||||
0 => 'field_farm_inventory',
|
||||
),
|
||||
'format_type' => 'fieldset',
|
||||
'format_settings' => array(
|
||||
'formatter' => 'collapsible',
|
||||
'instance_settings' => array(
|
||||
'description' => '',
|
||||
'classes' => 'group-farm-inventory field-group-fieldset',
|
||||
'required_fields' => 1,
|
||||
'id' => '',
|
||||
),
|
||||
),
|
||||
);
|
||||
$field_groups['group_farm_inventory|log|farm_birth|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;
|
||||
|
@ -296,6 +495,33 @@ function farm_livestock_field_group_info() {
|
|||
);
|
||||
$field_groups['group_farm_lineage|farm_asset|animal|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_location|log|farm_birth|form';
|
||||
$field_group->group_name = 'group_farm_location';
|
||||
$field_group->entity_type = 'log';
|
||||
$field_group->bundle = 'farm_birth';
|
||||
$field_group->mode = 'form';
|
||||
$field_group->parent_name = 'group_farm_tabs';
|
||||
$field_group->data = array(
|
||||
'label' => 'Location',
|
||||
'weight' => '6',
|
||||
'children' => array(
|
||||
0 => 'field_farm_area',
|
||||
1 => 'group_farm_geometry',
|
||||
),
|
||||
'format_type' => 'field_group_easy_responsive_tabs_nav_item',
|
||||
'format_settings' => array(
|
||||
'formatter' => '',
|
||||
'instance_settings' => array(
|
||||
'classes' => 'group-farm-location field-group-field_group_easy_responsive_tabs_nav_item',
|
||||
'required_fields' => 1,
|
||||
),
|
||||
),
|
||||
);
|
||||
$field_groups['group_farm_location|log|farm_birth|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;
|
||||
|
@ -360,6 +586,45 @@ function farm_livestock_field_group_info() {
|
|||
);
|
||||
$field_groups['group_farm_tabs|farm_asset|animal|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_tabs|log|farm_birth|form';
|
||||
$field_group->group_name = 'group_farm_tabs';
|
||||
$field_group->entity_type = 'log';
|
||||
$field_group->bundle = 'farm_birth';
|
||||
$field_group->mode = 'form';
|
||||
$field_group->parent_name = '';
|
||||
$field_group->data = array(
|
||||
'label' => 'Tabs',
|
||||
'weight' => '0',
|
||||
'children' => array(
|
||||
0 => 'group_farm_general',
|
||||
1 => 'group_farm_files',
|
||||
2 => 'group_farm_inventory',
|
||||
3 => 'group_farm_children',
|
||||
4 => 'group_farm_location',
|
||||
),
|
||||
'format_type' => 'field_group_easy_responsive_tabs_nav',
|
||||
'format_settings' => array(
|
||||
'label' => 'Tabs',
|
||||
'instance_settings' => array(
|
||||
'type' => 'vertical',
|
||||
'width' => 'auto',
|
||||
'fit' => '1',
|
||||
'closed' => '0',
|
||||
'activetab_bg' => '',
|
||||
'inactive_bg' => '',
|
||||
'active_border_color' => '',
|
||||
'active_content_border_color' => '',
|
||||
'tabidentify' => '',
|
||||
'required_fields' => 1,
|
||||
'classes' => 'group-farm-tabs field-group-field_group_easy_responsive_tabs_nav',
|
||||
),
|
||||
),
|
||||
);
|
||||
$field_groups['group_farm_tabs|log|farm_birth|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;
|
||||
|
@ -403,8 +668,10 @@ function farm_livestock_field_group_info() {
|
|||
// Included for use with string extractors like potx.
|
||||
t('Assignment');
|
||||
t('Category');
|
||||
t('Children');
|
||||
t('Files');
|
||||
t('General');
|
||||
t('Geometry');
|
||||
t('Identification');
|
||||
t('Individual');
|
||||
t('Inventory');
|
||||
|
|
|
@ -8,6 +8,7 @@ dependencies[] = date
|
|||
dependencies[] = entity
|
||||
dependencies[] = entityreference
|
||||
dependencies[] = entityreference_view_widget
|
||||
dependencies[] = farm_area
|
||||
dependencies[] = farm_asset
|
||||
dependencies[] = farm_asset_children
|
||||
dependencies[] = farm_asset_views
|
||||
|
@ -27,6 +28,7 @@ dependencies[] = list
|
|||
dependencies[] = log
|
||||
dependencies[] = multiupload_filefield_widget
|
||||
dependencies[] = multiupload_imagefield_widget
|
||||
dependencies[] = openlayers_geofield
|
||||
dependencies[] = options
|
||||
dependencies[] = pathauto
|
||||
dependencies[] = strongarm
|
||||
|
@ -49,18 +51,27 @@ 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_birth|form
|
||||
features[field_group][] = group_farm_assignment|log|farm_medical|form
|
||||
features[field_group][] = group_farm_category|log|farm_birth|form
|
||||
features[field_group][] = group_farm_category|log|farm_medical|form
|
||||
features[field_group][] = group_farm_children|log|farm_birth|form
|
||||
features[field_group][] = group_farm_files|farm_asset|animal|form
|
||||
features[field_group][] = group_farm_files|log|farm_birth|form
|
||||
features[field_group][] = group_farm_files|log|farm_medical|form
|
||||
features[field_group][] = group_farm_general|farm_asset|animal|form
|
||||
features[field_group][] = group_farm_general|log|farm_birth|form
|
||||
features[field_group][] = group_farm_general|log|farm_medical|form
|
||||
features[field_group][] = group_farm_geometry|log|farm_birth|form
|
||||
features[field_group][] = group_farm_id|farm_asset|animal|form
|
||||
features[field_group][] = group_farm_individual|farm_asset|animal|form
|
||||
features[field_group][] = group_farm_inventory|log|farm_birth|form
|
||||
features[field_group][] = group_farm_inventory|log|farm_medical|form
|
||||
features[field_group][] = group_farm_lineage|farm_asset|animal|form
|
||||
features[field_group][] = group_farm_location|log|farm_birth|form
|
||||
features[field_group][] = group_farm_location|log|farm_medical|form
|
||||
features[field_group][] = group_farm_tabs|farm_asset|animal|form
|
||||
features[field_group][] = group_farm_tabs|log|farm_birth|form
|
||||
features[field_group][] = group_farm_tabs|log|farm_medical|form
|
||||
features[field_instance][] = farm_asset-animal-field_farm_animal_castrated
|
||||
features[field_instance][] = farm_asset-animal-field_farm_animal_nicknames
|
||||
|
@ -75,6 +86,17 @@ features[field_instance][] = farm_asset-animal-field_farm_parent
|
|||
features[field_instance][] = field_collection_item-field_farm_animal_tag-field_farm_animal_tag_id
|
||||
features[field_instance][] = field_collection_item-field_farm_animal_tag-field_farm_animal_tag_location
|
||||
features[field_instance][] = field_collection_item-field_farm_animal_tag-field_farm_animal_tag_type
|
||||
features[field_instance][] = log-farm_birth-field_farm_area
|
||||
features[field_instance][] = log-farm_birth-field_farm_asset
|
||||
features[field_instance][] = log-farm_birth-field_farm_files
|
||||
features[field_instance][] = log-farm_birth-field_farm_geofield
|
||||
features[field_instance][] = log-farm_birth-field_farm_images
|
||||
features[field_instance][] = log-farm_birth-field_farm_inventory
|
||||
features[field_instance][] = log-farm_birth-field_farm_log_category
|
||||
features[field_instance][] = log-farm_birth-field_farm_log_owner
|
||||
features[field_instance][] = log-farm_birth-field_farm_membership
|
||||
features[field_instance][] = log-farm_birth-field_farm_movement
|
||||
features[field_instance][] = log-farm_birth-field_farm_notes
|
||||
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
|
||||
|
@ -83,6 +105,7 @@ features[field_instance][] = log-farm_medical-field_farm_log_category
|
|||
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_birth
|
||||
features[log_type][] = farm_medical
|
||||
features[taxonomy][] = farm_animal_types
|
||||
features[variable][] = pathauto_farm_asset_animal_pattern
|
||||
|
|
Loading…
Reference in a new issue