Add Flags field to all asset and log types.

This commit is contained in:
Michael Stenta 2018-03-19 16:24:05 -04:00
parent e83ca98902
commit 50e82d0c68
39 changed files with 873 additions and 232 deletions

View File

@ -40,7 +40,7 @@ function farm_crop_field_default_field_instances() {
'size' => 60, 'size' => 60,
), ),
'type' => 'taxonomy_autocomplete', 'type' => 'taxonomy_autocomplete',
'weight' => 1, 'weight' => -9,
), ),
); );
@ -56,7 +56,7 @@ function farm_crop_field_default_field_instances() {
'module' => 'text', 'module' => 'text',
'settings' => array(), 'settings' => array(),
'type' => 'text_default', 'type' => 'text_default',
'weight' => 3, 'weight' => 4,
), ),
), ),
'entity_type' => 'farm_asset', 'entity_type' => 'farm_asset',
@ -74,7 +74,7 @@ function farm_crop_field_default_field_instances() {
'rows' => 5, 'rows' => 5,
), ),
'type' => 'text_textarea', 'type' => 'text_textarea',
'weight' => 3, 'weight' => -7,
), ),
); );
@ -89,7 +89,7 @@ function farm_crop_field_default_field_instances() {
'module' => 'file', 'module' => 'file',
'settings' => array(), 'settings' => array(),
'type' => 'file_table', 'type' => 'file_table',
'weight' => 5, 'weight' => 6,
), ),
), ),
'entity_type' => 'farm_asset', 'entity_type' => 'farm_asset',
@ -114,6 +114,37 @@ function farm_crop_field_default_field_instances() {
), ),
); );
// Exported field_instance: 'farm_asset-planting-field_farm_flags'.
$field_instances['farm_asset-planting-field_farm_flags'] = array(
'bundle' => 'planting',
'default_value' => NULL,
'deleted' => 0,
'description' => 'Add flags to this asset to enable better sorting and filtering of records.',
'display' => array(
'default' => array(
'label' => 'inline',
'module' => 'list',
'settings' => array(),
'type' => 'list_default',
'weight' => 3,
),
),
'entity_type' => 'farm_asset',
'field_name' => 'field_farm_flags',
'label' => 'Flags',
'required' => 0,
'settings' => array(
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'options',
'settings' => array(),
'type' => 'options_buttons',
'weight' => -6,
),
);
// Exported field_instance: 'farm_asset-planting-field_farm_images'. // Exported field_instance: 'farm_asset-planting-field_farm_images'.
$field_instances['farm_asset-planting-field_farm_images'] = array( $field_instances['farm_asset-planting-field_farm_images'] = array(
'bundle' => 'planting', 'bundle' => 'planting',
@ -135,7 +166,7 @@ function farm_crop_field_default_field_instances() {
'colorbox_node_style_first' => 'large', 'colorbox_node_style_first' => 'large',
), ),
'type' => 'colorbox', 'type' => 'colorbox',
'weight' => 4, 'weight' => 5,
), ),
), ),
'entity_type' => 'farm_asset', 'entity_type' => 'farm_asset',
@ -234,7 +265,7 @@ function farm_crop_field_default_field_instances() {
'module' => 'options', 'module' => 'options',
'settings' => array(), 'settings' => array(),
'type' => 'options_select', 'type' => 'options_select',
'weight' => 2, 'weight' => -8,
), ),
); );
@ -275,7 +306,7 @@ function farm_crop_field_default_field_instances() {
'view_mode' => 'full', 'view_mode' => 'full',
), ),
'type' => 'entityreference_view_widget', 'type' => 'entityreference_view_widget',
'weight' => 5, 'weight' => -4,
), ),
); );
@ -290,7 +321,7 @@ function farm_crop_field_default_field_instances() {
'module' => 'file', 'module' => 'file',
'settings' => array(), 'settings' => array(),
'type' => 'file_table', 'type' => 'file_table',
'weight' => 8, 'weight' => 10,
), ),
), ),
'entity_type' => 'log', 'entity_type' => 'log',
@ -315,6 +346,37 @@ function farm_crop_field_default_field_instances() {
), ),
); );
// Exported field_instance: 'log-farm_seeding-field_farm_flags'.
$field_instances['log-farm_seeding-field_farm_flags'] = array(
'bundle' => 'farm_seeding',
'default_value' => NULL,
'deleted' => 0,
'description' => 'Add flags to this log to enable better sorting and filtering of records.',
'display' => array(
'default' => array(
'label' => 'inline',
'module' => 'list',
'settings' => array(),
'type' => 'list_default',
'weight' => 6,
),
),
'entity_type' => 'log',
'field_name' => 'field_farm_flags',
'label' => 'Flags',
'required' => 0,
'settings' => array(
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'options',
'settings' => array(),
'type' => 'options_buttons',
'weight' => -1,
),
);
// Exported field_instance: 'log-farm_seeding-field_farm_images'. // Exported field_instance: 'log-farm_seeding-field_farm_images'.
$field_instances['log-farm_seeding-field_farm_images'] = array( $field_instances['log-farm_seeding-field_farm_images'] = array(
'bundle' => 'farm_seeding', 'bundle' => 'farm_seeding',
@ -335,7 +397,7 @@ function farm_crop_field_default_field_instances() {
'colorbox_node_style_first' => 'large', 'colorbox_node_style_first' => 'large',
), ),
'type' => 'colorbox', 'type' => 'colorbox',
'weight' => 7, 'weight' => 9,
), ),
), ),
'entity_type' => 'log', 'entity_type' => 'log',
@ -406,11 +468,11 @@ function farm_crop_field_default_field_instances() {
'description' => 'Use this to organize your logs into categories for easier searching and filtering later.', 'description' => 'Use this to organize your logs into categories for easier searching and filtering later.',
'display' => array( 'display' => array(
'default' => array( 'default' => array(
'label' => 'above', 'label' => 'inline',
'module' => 'taxonomy', 'module' => 'taxonomy',
'settings' => array(), 'settings' => array(),
'type' => 'taxonomy_term_reference_link', 'type' => 'taxonomy_term_reference_link',
'weight' => 9, 'weight' => 7,
), ),
), ),
'entity_type' => 'log', 'entity_type' => 'log',
@ -444,7 +506,7 @@ function farm_crop_field_default_field_instances() {
'link' => FALSE, 'link' => FALSE,
), ),
'type' => 'entityreference_label', 'type' => 'entityreference_label',
'weight' => 6, 'weight' => 8,
), ),
), ),
'entity_type' => 'log', 'entity_type' => 'log',
@ -492,7 +554,7 @@ function farm_crop_field_default_field_instances() {
'module' => 'field_collection', 'module' => 'field_collection',
'settings' => array(), 'settings' => array(),
'type' => 'field_collection_embed', 'type' => 'field_collection_embed',
'weight' => 14, 'weight' => 19,
), ),
); );
@ -526,7 +588,7 @@ function farm_crop_field_default_field_instances() {
'rows' => 5, 'rows' => 5,
), ),
'type' => 'text_textarea', 'type' => 'text_textarea',
'weight' => 7, 'weight' => -2,
), ),
); );
@ -593,7 +655,7 @@ function farm_crop_field_default_field_instances() {
'size' => 60, 'size' => 60,
), ),
'type' => 'text_textfield', 'type' => 'text_textfield',
'weight' => 6, 'weight' => -3,
), ),
); );
@ -649,7 +711,7 @@ function farm_crop_field_default_field_instances() {
'module' => 'file', 'module' => 'file',
'settings' => array(), 'settings' => array(),
'type' => 'file_table', 'type' => 'file_table',
'weight' => 7, 'weight' => 9,
), ),
), ),
'entity_type' => 'log', 'entity_type' => 'log',
@ -674,6 +736,37 @@ function farm_crop_field_default_field_instances() {
), ),
); );
// Exported field_instance: 'log-farm_transplanting-field_farm_flags'.
$field_instances['log-farm_transplanting-field_farm_flags'] = array(
'bundle' => 'farm_transplanting',
'default_value' => NULL,
'deleted' => 0,
'description' => 'Add flags to this log to enable better sorting and filtering of records.',
'display' => array(
'default' => array(
'label' => 'inline',
'module' => 'list',
'settings' => array(),
'type' => 'list_default',
'weight' => 5,
),
),
'entity_type' => 'log',
'field_name' => 'field_farm_flags',
'label' => 'Flags',
'required' => 0,
'settings' => array(
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'options',
'settings' => array(),
'type' => 'options_buttons',
'weight' => -2,
),
);
// Exported field_instance: 'log-farm_transplanting-field_farm_images'. // Exported field_instance: 'log-farm_transplanting-field_farm_images'.
$field_instances['log-farm_transplanting-field_farm_images'] = array( $field_instances['log-farm_transplanting-field_farm_images'] = array(
'bundle' => 'farm_transplanting', 'bundle' => 'farm_transplanting',
@ -694,7 +787,7 @@ function farm_crop_field_default_field_instances() {
'colorbox_node_style_first' => 'large', 'colorbox_node_style_first' => 'large',
), ),
'type' => 'colorbox', 'type' => 'colorbox',
'weight' => 6, 'weight' => 8,
), ),
), ),
'entity_type' => 'log', 'entity_type' => 'log',
@ -765,11 +858,11 @@ function farm_crop_field_default_field_instances() {
'description' => 'Use this to organize your logs into categories for easier searching and filtering later.', 'description' => 'Use this to organize your logs into categories for easier searching and filtering later.',
'display' => array( 'display' => array(
'default' => array( 'default' => array(
'label' => 'above', 'label' => 'inline',
'module' => 'taxonomy', 'module' => 'taxonomy',
'settings' => array(), 'settings' => array(),
'type' => 'taxonomy_term_reference_link', 'type' => 'taxonomy_term_reference_link',
'weight' => 8, 'weight' => 6,
), ),
), ),
'entity_type' => 'log', 'entity_type' => 'log',
@ -803,7 +896,7 @@ function farm_crop_field_default_field_instances() {
'link' => FALSE, 'link' => FALSE,
), ),
'type' => 'entityreference_label', 'type' => 'entityreference_label',
'weight' => 5, 'weight' => 7,
), ),
), ),
'entity_type' => 'log', 'entity_type' => 'log',
@ -918,7 +1011,7 @@ function farm_crop_field_default_field_instances() {
'module' => 'field_collection', 'module' => 'field_collection',
'settings' => array(), 'settings' => array(),
'type' => 'field_collection_embed', 'type' => 'field_collection_embed',
'weight' => 4, 'weight' => 15,
), ),
); );
@ -1127,6 +1220,8 @@ function farm_crop_field_default_field_instances() {
// Translatables // Translatables
// Included for use with string extractors like potx. // Included for use with string extractors like potx.
t('Add flags to this asset to enable better sorting and filtering of records.');
t('Add flags to this log to enable better sorting and filtering of records.');
t('Assign this planting to a season. You can manage these options in the ' . l('Seasons', 'admin/structure/taxonomy/farm_season') . ' vocabulary.'); t('Assign this planting to a season. You can manage these options in the ' . l('Seasons', 'admin/structure/taxonomy/farm_season') . ' vocabulary.');
t('Assigned to'); t('Assigned to');
t('Companions'); t('Companions');
@ -1139,6 +1234,7 @@ function farm_crop_field_default_field_instances() {
t('Description'); t('Description');
t('Enter the crop/variety that this is a planting of. As you type, you will have the option of selecting from crops/varieties that you\'ve entered in the past.'); t('Enter the crop/variety that this is a planting of. As you type, you will have the option of selecting from crops/varieties that you\'ve entered in the past.');
t('Files'); t('Files');
t('Flags');
t('Inventory adjustments'); t('Inventory adjustments');
t('Log category'); t('Log category');
t('Movement'); t('Movement');

View File

@ -21,7 +21,7 @@ function farm_crop_field_group_info() {
$field_group->parent_name = 'group_farm_general'; $field_group->parent_name = 'group_farm_general';
$field_group->data = array( $field_group->data = array(
'label' => 'Assignment', 'label' => 'Assignment',
'weight' => '9', 'weight' => '1',
'children' => array( 'children' => array(
0 => 'field_farm_log_owner', 0 => 'field_farm_log_owner',
), ),
@ -50,7 +50,7 @@ function farm_crop_field_group_info() {
$field_group->parent_name = 'group_farm_general'; $field_group->parent_name = 'group_farm_general';
$field_group->data = array( $field_group->data = array(
'label' => 'Assignment', 'label' => 'Assignment',
'weight' => '-1', 'weight' => '0',
'children' => array( 'children' => array(
0 => 'field_farm_log_owner', 0 => 'field_farm_log_owner',
), ),
@ -79,7 +79,7 @@ function farm_crop_field_group_info() {
$field_group->parent_name = 'group_farm_general'; $field_group->parent_name = 'group_farm_general';
$field_group->data = array( $field_group->data = array(
'label' => 'Category', 'label' => 'Category',
'weight' => '8', 'weight' => '0',
'children' => array( 'children' => array(
0 => 'field_farm_log_category', 0 => 'field_farm_log_category',
), ),
@ -108,7 +108,7 @@ function farm_crop_field_group_info() {
$field_group->parent_name = 'group_farm_general'; $field_group->parent_name = 'group_farm_general';
$field_group->data = array( $field_group->data = array(
'label' => 'Category', 'label' => 'Category',
'weight' => '-2', 'weight' => '-1',
'children' => array( 'children' => array(
0 => 'field_farm_log_category', 0 => 'field_farm_log_category',
), ),
@ -226,7 +226,8 @@ function farm_crop_field_group_info() {
0 => 'field_farm_crop', 0 => 'field_farm_crop',
1 => 'field_farm_description', 1 => 'field_farm_description',
2 => 'field_farm_season', 2 => 'field_farm_season',
3 => 'name', 3 => 'field_farm_flags',
4 => 'name',
), ),
'format_type' => 'field_group_easy_responsive_tabs_nav_item', 'format_type' => 'field_group_easy_responsive_tabs_nav_item',
'format_settings' => array( 'format_settings' => array(
@ -256,9 +257,10 @@ function farm_crop_field_group_info() {
0 => 'field_farm_asset', 0 => 'field_farm_asset',
1 => 'field_farm_notes', 1 => 'field_farm_notes',
2 => 'field_farm_seed_source', 2 => 'field_farm_seed_source',
3 => 'timestamp', 3 => 'field_farm_flags',
4 => 'group_farm_assignment', 4 => 'timestamp',
5 => 'group_farm_category', 5 => 'group_farm_assignment',
6 => 'group_farm_category',
), ),
'format_type' => 'field_group_easy_responsive_tabs_nav_item', 'format_type' => 'field_group_easy_responsive_tabs_nav_item',
'format_settings' => array( 'format_settings' => array(
@ -287,9 +289,10 @@ function farm_crop_field_group_info() {
'children' => array( 'children' => array(
0 => 'field_farm_asset', 0 => 'field_farm_asset',
1 => 'field_farm_notes', 1 => 'field_farm_notes',
2 => 'timestamp', 2 => 'field_farm_flags',
3 => 'group_farm_assignment', 3 => 'timestamp',
4 => 'group_farm_category', 4 => 'group_farm_assignment',
5 => 'group_farm_category',
), ),
'format_type' => 'field_group_easy_responsive_tabs_nav_item', 'format_type' => 'field_group_easy_responsive_tabs_nav_item',
'format_settings' => array( 'format_settings' => array(
@ -395,7 +398,6 @@ function farm_crop_field_group_info() {
'weight' => '2', 'weight' => '2',
'children' => array( 'children' => array(
0 => 'field_farm_movement', 0 => 'field_farm_movement',
1 => 'group_farm_movement',
), ),
'format_type' => 'field_group_easy_responsive_tabs_nav_item', 'format_type' => 'field_group_easy_responsive_tabs_nav_item',
'format_settings' => array( 'format_settings' => array(
@ -577,10 +579,9 @@ function farm_crop_field_group_info() {
'children' => array( 'children' => array(
0 => 'group_farm_files', 0 => 'group_farm_files',
1 => 'group_farm_general', 1 => 'group_farm_general',
2 => 'group_farm_movement', 2 => 'group_farm_quantity',
3 => 'group_farm_quantity', 3 => 'group_farm_inventory',
4 => 'group_farm_inventory', 4 => 'group_farm_location',
5 => 'group_farm_location',
), ),
'format_type' => 'field_group_easy_responsive_tabs_nav', 'format_type' => 'field_group_easy_responsive_tabs_nav',
'format_settings' => array( 'format_settings' => array(

View File

@ -14,6 +14,7 @@ dependencies[] = farm_asset
dependencies[] = farm_asset_children dependencies[] = farm_asset_children
dependencies[] = farm_asset_views dependencies[] = farm_asset_views
dependencies[] = farm_fields dependencies[] = farm_fields
dependencies[] = farm_flags
dependencies[] = farm_group dependencies[] = farm_group
dependencies[] = farm_inventory dependencies[] = farm_inventory
dependencies[] = farm_map dependencies[] = farm_map
@ -76,11 +77,13 @@ features[field_group][] = group_farm_tabs|log|farm_transplanting|form
features[field_instance][] = farm_asset-planting-field_farm_crop features[field_instance][] = farm_asset-planting-field_farm_crop
features[field_instance][] = farm_asset-planting-field_farm_description features[field_instance][] = farm_asset-planting-field_farm_description
features[field_instance][] = farm_asset-planting-field_farm_files features[field_instance][] = farm_asset-planting-field_farm_files
features[field_instance][] = farm_asset-planting-field_farm_flags
features[field_instance][] = farm_asset-planting-field_farm_images features[field_instance][] = farm_asset-planting-field_farm_images
features[field_instance][] = farm_asset-planting-field_farm_parent features[field_instance][] = farm_asset-planting-field_farm_parent
features[field_instance][] = farm_asset-planting-field_farm_season 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_asset
features[field_instance][] = log-farm_seeding-field_farm_files features[field_instance][] = log-farm_seeding-field_farm_files
features[field_instance][] = log-farm_seeding-field_farm_flags
features[field_instance][] = log-farm_seeding-field_farm_images features[field_instance][] = log-farm_seeding-field_farm_images
features[field_instance][] = log-farm_seeding-field_farm_inventory features[field_instance][] = log-farm_seeding-field_farm_inventory
features[field_instance][] = log-farm_seeding-field_farm_log_category features[field_instance][] = log-farm_seeding-field_farm_log_category
@ -91,6 +94,7 @@ features[field_instance][] = log-farm_seeding-field_farm_quantity
features[field_instance][] = log-farm_seeding-field_farm_seed_source 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_asset
features[field_instance][] = log-farm_transplanting-field_farm_files features[field_instance][] = log-farm_transplanting-field_farm_files
features[field_instance][] = log-farm_transplanting-field_farm_flags
features[field_instance][] = log-farm_transplanting-field_farm_images features[field_instance][] = log-farm_transplanting-field_farm_images
features[field_instance][] = log-farm_transplanting-field_farm_inventory features[field_instance][] = log-farm_transplanting-field_farm_inventory
features[field_instance][] = log-farm_transplanting-field_farm_log_category features[field_instance][] = log-farm_transplanting-field_farm_log_category

View File

@ -22,7 +22,7 @@ function farm_equipment_field_default_field_instances() {
'module' => 'text', 'module' => 'text',
'settings' => array(), 'settings' => array(),
'type' => 'text_default', 'type' => 'text_default',
'weight' => 3, 'weight' => 4,
), ),
), ),
'entity_type' => 'farm_asset', 'entity_type' => 'farm_asset',
@ -40,7 +40,7 @@ function farm_equipment_field_default_field_instances() {
'rows' => 5, 'rows' => 5,
), ),
'type' => 'text_textarea', 'type' => 'text_textarea',
'weight' => 4, 'weight' => -6,
), ),
); );
@ -56,7 +56,7 @@ function farm_equipment_field_default_field_instances() {
'module' => 'file', 'module' => 'file',
'settings' => array(), 'settings' => array(),
'type' => 'file_table', 'type' => 'file_table',
'weight' => 5, 'weight' => 6,
), ),
), ),
'entity_type' => 'farm_asset', 'entity_type' => 'farm_asset',
@ -81,6 +81,37 @@ function farm_equipment_field_default_field_instances() {
), ),
); );
// Exported field_instance: 'farm_asset-equipment-field_farm_flags'.
$field_instances['farm_asset-equipment-field_farm_flags'] = array(
'bundle' => 'equipment',
'default_value' => NULL,
'deleted' => 0,
'description' => 'Add flags to this asset to enable better sorting and filtering of records.',
'display' => array(
'default' => array(
'label' => 'inline',
'module' => 'list',
'settings' => array(),
'type' => 'list_default',
'weight' => 3,
),
),
'entity_type' => 'farm_asset',
'field_name' => 'field_farm_flags',
'label' => 'Flags',
'required' => 0,
'settings' => array(
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'options',
'settings' => array(),
'type' => 'options_buttons',
'weight' => -5,
),
);
// Exported field_instance: 'farm_asset-equipment-field_farm_images'. // Exported field_instance: 'farm_asset-equipment-field_farm_images'.
$field_instances['farm_asset-equipment-field_farm_images'] = array( $field_instances['farm_asset-equipment-field_farm_images'] = array(
'bundle' => 'equipment', 'bundle' => 'equipment',
@ -102,7 +133,7 @@ function farm_equipment_field_default_field_instances() {
'colorbox_node_style_first' => 'large', 'colorbox_node_style_first' => 'large',
), ),
'type' => 'colorbox', 'type' => 'colorbox',
'weight' => 4, 'weight' => 5,
), ),
), ),
'entity_type' => 'farm_asset', 'entity_type' => 'farm_asset',
@ -162,7 +193,7 @@ function farm_equipment_field_default_field_instances() {
'size' => 60, 'size' => 60,
), ),
'type' => 'text_textfield', 'type' => 'text_textfield',
'weight' => 1, 'weight' => -9,
), ),
); );
@ -196,7 +227,7 @@ function farm_equipment_field_default_field_instances() {
'size' => 60, 'size' => 60,
), ),
'type' => 'text_textfield', 'type' => 'text_textfield',
'weight' => 2, 'weight' => -8,
), ),
); );
@ -230,7 +261,7 @@ function farm_equipment_field_default_field_instances() {
'size' => 60, 'size' => 60,
), ),
'type' => 'text_textfield', 'type' => 'text_textfield',
'weight' => 3, 'weight' => -7,
), ),
); );
@ -287,7 +318,7 @@ function farm_equipment_field_default_field_instances() {
'module' => 'file', 'module' => 'file',
'settings' => array(), 'settings' => array(),
'type' => 'file_table', 'type' => 'file_table',
'weight' => 7, 'weight' => 8,
), ),
), ),
'entity_type' => 'log', 'entity_type' => 'log',
@ -312,6 +343,37 @@ function farm_equipment_field_default_field_instances() {
), ),
); );
// Exported field_instance: 'log-farm_maintenance-field_farm_flags'.
$field_instances['log-farm_maintenance-field_farm_flags'] = array(
'bundle' => 'farm_maintenance',
'default_value' => NULL,
'deleted' => 0,
'description' => 'Add flags to this log to enable better sorting and filtering of records.',
'display' => array(
'default' => array(
'label' => 'inline',
'module' => 'list',
'settings' => array(),
'type' => 'list_default',
'weight' => 4,
),
),
'entity_type' => 'log',
'field_name' => 'field_farm_flags',
'label' => 'Flags',
'required' => 0,
'settings' => array(
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'options',
'settings' => array(),
'type' => 'options_buttons',
'weight' => -7,
),
);
// Exported field_instance: 'log-farm_maintenance-field_farm_images'. // Exported field_instance: 'log-farm_maintenance-field_farm_images'.
$field_instances['log-farm_maintenance-field_farm_images'] = array( $field_instances['log-farm_maintenance-field_farm_images'] = array(
'bundle' => 'farm_maintenance', 'bundle' => 'farm_maintenance',
@ -333,7 +395,7 @@ function farm_equipment_field_default_field_instances() {
'colorbox_node_style_first' => 'large', 'colorbox_node_style_first' => 'large',
), ),
'type' => 'colorbox', 'type' => 'colorbox',
'weight' => 6, 'weight' => 7,
), ),
), ),
'entity_type' => 'log', 'entity_type' => 'log',
@ -408,7 +470,7 @@ function farm_equipment_field_default_field_instances() {
'module' => 'taxonomy', 'module' => 'taxonomy',
'settings' => array(), 'settings' => array(),
'type' => 'taxonomy_term_reference_link', 'type' => 'taxonomy_term_reference_link',
'weight' => 4, 'weight' => 5,
), ),
), ),
'entity_type' => 'log', 'entity_type' => 'log',
@ -442,7 +504,7 @@ function farm_equipment_field_default_field_instances() {
'link' => FALSE, 'link' => FALSE,
), ),
'type' => 'entityreference_label', 'type' => 'entityreference_label',
'weight' => 5, 'weight' => 6,
), ),
), ),
'entity_type' => 'log', 'entity_type' => 'log',
@ -524,16 +586,19 @@ function farm_equipment_field_default_field_instances() {
'rows' => 5, 'rows' => 5,
), ),
'type' => 'text_textarea', 'type' => 'text_textarea',
'weight' => 1, 'weight' => -8,
), ),
); );
// Translatables // Translatables
// Included for use with string extractors like potx. // Included for use with string extractors like potx.
t('Add flags to this asset to enable better sorting and filtering of records.');
t('Add flags to this log to enable better sorting and filtering of records.');
t('Assets'); t('Assets');
t('Assigned to'); t('Assigned to');
t('Description'); t('Description');
t('Files'); t('Files');
t('Flags');
t('Inventory adjustments'); t('Inventory adjustments');
t('Log category'); t('Log category');
t('Manufacturer'); t('Manufacturer');

View File

@ -25,7 +25,6 @@ function farm_equipment_field_group_info() {
'children' => array( 'children' => array(
0 => 'field_farm_asset', 0 => 'field_farm_asset',
1 => 'field_farm_movement', 1 => 'field_farm_movement',
2 => 'group_farm_movement',
), ),
'format_type' => 'fieldset', 'format_type' => 'fieldset',
'format_settings' => array( 'format_settings' => array(
@ -52,7 +51,7 @@ function farm_equipment_field_group_info() {
$field_group->parent_name = 'group_farm_general'; $field_group->parent_name = 'group_farm_general';
$field_group->data = array( $field_group->data = array(
'label' => 'Assignment', 'label' => 'Assignment',
'weight' => '3', 'weight' => '-5',
'children' => array( 'children' => array(
0 => 'field_farm_log_owner', 0 => 'field_farm_log_owner',
), ),
@ -81,7 +80,7 @@ function farm_equipment_field_group_info() {
$field_group->parent_name = 'group_farm_general'; $field_group->parent_name = 'group_farm_general';
$field_group->data = array( $field_group->data = array(
'label' => 'Category', 'label' => 'Category',
'weight' => '2', 'weight' => '-6',
'children' => array( 'children' => array(
0 => 'field_farm_log_category', 0 => 'field_farm_log_category',
), ),
@ -171,7 +170,8 @@ function farm_equipment_field_group_info() {
1 => 'field_farm_manufacturer', 1 => 'field_farm_manufacturer',
2 => 'field_farm_model', 2 => 'field_farm_model',
3 => 'field_farm_serial_number', 3 => 'field_farm_serial_number',
4 => 'name', 4 => 'field_farm_flags',
5 => 'name',
), ),
'format_type' => 'field_group_easy_responsive_tabs_nav_item', 'format_type' => 'field_group_easy_responsive_tabs_nav_item',
'format_settings' => array( 'format_settings' => array(
@ -199,10 +199,11 @@ function farm_equipment_field_group_info() {
'weight' => '1', 'weight' => '1',
'children' => array( 'children' => array(
0 => 'field_farm_notes', 0 => 'field_farm_notes',
1 => 'name', 1 => 'field_farm_flags',
2 => 'timestamp', 2 => 'name',
3 => 'group_farm_category', 3 => 'timestamp',
4 => 'group_farm_assignment', 4 => 'group_farm_category',
5 => 'group_farm_assignment',
), ),
'format_type' => 'field_group_easy_responsive_tabs_nav_item', 'format_type' => 'field_group_easy_responsive_tabs_nav_item',
'format_settings' => array( 'format_settings' => array(
@ -294,8 +295,7 @@ function farm_equipment_field_group_info() {
0 => 'group_farm_assets', 0 => 'group_farm_assets',
1 => 'group_farm_files', 1 => 'group_farm_files',
2 => 'group_farm_general', 2 => 'group_farm_general',
3 => 'group_farm_references', 3 => 'group_farm_inventory',
4 => 'group_farm_inventory',
), ),
'format_type' => 'field_group_easy_responsive_tabs_nav', 'format_type' => 'field_group_easy_responsive_tabs_nav',
'format_settings' => array( 'format_settings' => array(

View File

@ -11,6 +11,7 @@ dependencies[] = entityreference_view_widget
dependencies[] = farm_asset dependencies[] = farm_asset
dependencies[] = farm_asset_views dependencies[] = farm_asset_views
dependencies[] = farm_fields dependencies[] = farm_fields
dependencies[] = farm_flags
dependencies[] = farm_group dependencies[] = farm_group
dependencies[] = farm_inventory dependencies[] = farm_inventory
dependencies[] = farm_movement dependencies[] = farm_movement
@ -20,6 +21,7 @@ dependencies[] = field_group
dependencies[] = field_group_easy_responsive_tabs dependencies[] = field_group_easy_responsive_tabs
dependencies[] = file dependencies[] = file
dependencies[] = image dependencies[] = image
dependencies[] = list
dependencies[] = log dependencies[] = log
dependencies[] = multiupload_filefield_widget dependencies[] = multiupload_filefield_widget
dependencies[] = multiupload_imagefield_widget dependencies[] = multiupload_imagefield_widget
@ -51,12 +53,14 @@ features[field_group][] = group_farm_tabs|farm_asset|equipment|form
features[field_group][] = group_farm_tabs|log|farm_maintenance|form features[field_group][] = group_farm_tabs|log|farm_maintenance|form
features[field_instance][] = farm_asset-equipment-field_farm_description features[field_instance][] = farm_asset-equipment-field_farm_description
features[field_instance][] = farm_asset-equipment-field_farm_files features[field_instance][] = farm_asset-equipment-field_farm_files
features[field_instance][] = farm_asset-equipment-field_farm_flags
features[field_instance][] = farm_asset-equipment-field_farm_images features[field_instance][] = farm_asset-equipment-field_farm_images
features[field_instance][] = farm_asset-equipment-field_farm_manufacturer features[field_instance][] = farm_asset-equipment-field_farm_manufacturer
features[field_instance][] = farm_asset-equipment-field_farm_model features[field_instance][] = farm_asset-equipment-field_farm_model
features[field_instance][] = farm_asset-equipment-field_farm_serial_number 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_asset
features[field_instance][] = log-farm_maintenance-field_farm_files features[field_instance][] = log-farm_maintenance-field_farm_files
features[field_instance][] = log-farm_maintenance-field_farm_flags
features[field_instance][] = log-farm_maintenance-field_farm_images features[field_instance][] = log-farm_maintenance-field_farm_images
features[field_instance][] = log-farm_maintenance-field_farm_inventory features[field_instance][] = log-farm_maintenance-field_farm_inventory
features[field_instance][] = log-farm_maintenance-field_farm_log_category features[field_instance][] = log-farm_maintenance-field_farm_log_category

View File

@ -22,7 +22,7 @@ function farm_group_field_default_field_instances() {
'module' => 'text', 'module' => 'text',
'settings' => array(), 'settings' => array(),
'type' => 'text_default', 'type' => 'text_default',
'weight' => 1, 'weight' => 2,
), ),
), ),
'entity_type' => 'farm_asset', 'entity_type' => 'farm_asset',
@ -40,7 +40,7 @@ function farm_group_field_default_field_instances() {
'rows' => 5, 'rows' => 5,
), ),
'type' => 'text_textarea', 'type' => 'text_textarea',
'weight' => 1, 'weight' => -9,
), ),
); );
@ -55,7 +55,7 @@ function farm_group_field_default_field_instances() {
'module' => 'file', 'module' => 'file',
'settings' => array(), 'settings' => array(),
'type' => 'file_table', 'type' => 'file_table',
'weight' => 3, 'weight' => 4,
), ),
), ),
'entity_type' => 'farm_asset', 'entity_type' => 'farm_asset',
@ -80,6 +80,37 @@ function farm_group_field_default_field_instances() {
), ),
); );
// Exported field_instance: 'farm_asset-group-field_farm_flags'.
$field_instances['farm_asset-group-field_farm_flags'] = array(
'bundle' => 'group',
'default_value' => NULL,
'deleted' => 0,
'description' => 'Add flags to this asset to enable better sorting and filtering of records.',
'display' => array(
'default' => array(
'label' => 'inline',
'module' => 'list',
'settings' => array(),
'type' => 'list_default',
'weight' => 1,
),
),
'entity_type' => 'farm_asset',
'field_name' => 'field_farm_flags',
'label' => 'Flags',
'required' => 0,
'settings' => array(
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'options',
'settings' => array(),
'type' => 'options_buttons',
'weight' => -8,
),
);
// Exported field_instance: 'farm_asset-group-field_farm_images'. // Exported field_instance: 'farm_asset-group-field_farm_images'.
$field_instances['farm_asset-group-field_farm_images'] = array( $field_instances['farm_asset-group-field_farm_images'] = array(
'bundle' => 'group', 'bundle' => 'group',
@ -100,7 +131,7 @@ function farm_group_field_default_field_instances() {
'colorbox_node_style_first' => 'large', 'colorbox_node_style_first' => 'large',
), ),
'type' => 'colorbox', 'type' => 'colorbox',
'weight' => 2, 'weight' => 3,
), ),
), ),
'entity_type' => 'farm_asset', 'entity_type' => 'farm_asset',
@ -215,8 +246,10 @@ function farm_group_field_default_field_instances() {
// Translatables // Translatables
// Included for use with string extractors like potx. // Included for use with string extractors like potx.
t('Add flags to this asset to enable better sorting and filtering of records.');
t('Description'); t('Description');
t('Files'); t('Files');
t('Flags');
t('Group'); t('Group');
t('Parent(s)'); t('Parent(s)');
t('Photos'); t('Photos');

View File

@ -52,7 +52,8 @@ function farm_group_field_group_info() {
'weight' => '1', 'weight' => '1',
'children' => array( 'children' => array(
0 => 'field_farm_description', 0 => 'field_farm_description',
1 => 'name', 1 => 'field_farm_flags',
2 => 'name',
), ),
'format_type' => 'field_group_easy_responsive_tabs_nav_item', 'format_type' => 'field_group_easy_responsive_tabs_nav_item',
'format_settings' => array( 'format_settings' => array(

View File

@ -11,13 +11,16 @@ dependencies[] = farm_asset
dependencies[] = farm_asset_children dependencies[] = farm_asset_children
dependencies[] = farm_asset_views dependencies[] = farm_asset_views
dependencies[] = farm_fields dependencies[] = farm_fields
dependencies[] = farm_flags
dependencies[] = features dependencies[] = features
dependencies[] = field_collection dependencies[] = field_collection
dependencies[] = field_group dependencies[] = field_group
dependencies[] = field_group_easy_responsive_tabs dependencies[] = field_group_easy_responsive_tabs
dependencies[] = file dependencies[] = file
dependencies[] = image dependencies[] = image
dependencies[] = list
dependencies[] = multiupload_filefield_widget dependencies[] = multiupload_filefield_widget
dependencies[] = options
dependencies[] = text dependencies[] = text
dependencies[] = views dependencies[] = views
dependencies[] = views_data_export dependencies[] = views_data_export
@ -33,6 +36,7 @@ features[field_group][] = group_farm_lineage|farm_asset|group|form
features[field_group][] = group_farm_tabs|farm_asset|group|form features[field_group][] = group_farm_tabs|farm_asset|group|form
features[field_instance][] = farm_asset-group-field_farm_description features[field_instance][] = farm_asset-group-field_farm_description
features[field_instance][] = farm_asset-group-field_farm_files features[field_instance][] = farm_asset-group-field_farm_files
features[field_instance][] = farm_asset-group-field_farm_flags
features[field_instance][] = farm_asset-group-field_farm_images features[field_instance][] = farm_asset-group-field_farm_images
features[field_instance][] = farm_asset-group-field_farm_parent features[field_instance][] = farm_asset-group-field_farm_parent
features[field_instance][] = field_collection_item-field_farm_membership-field_farm_group features[field_instance][] = field_collection_item-field_farm_membership-field_farm_group

View File

@ -26,7 +26,7 @@ function farm_livestock_field_default_field_instances() {
'module' => 'list', 'module' => 'list',
'settings' => array(), 'settings' => array(),
'type' => 'list_default', 'type' => 'list_default',
'weight' => 5, 'weight' => 4,
), ),
), ),
'entity_type' => 'farm_asset', 'entity_type' => 'farm_asset',
@ -43,7 +43,7 @@ function farm_livestock_field_default_field_instances() {
'display_label' => 1, 'display_label' => 1,
), ),
'type' => 'options_onoff', 'type' => 'options_onoff',
'weight' => 12, 'weight' => 13,
), ),
); );
@ -77,7 +77,7 @@ function farm_livestock_field_default_field_instances() {
'size' => 60, 'size' => 60,
), ),
'type' => 'text_textfield', 'type' => 'text_textfield',
'weight' => 13, 'weight' => 14,
), ),
); );
@ -93,7 +93,7 @@ function farm_livestock_field_default_field_instances() {
'module' => 'list', 'module' => 'list',
'settings' => array(), 'settings' => array(),
'type' => 'list_default', 'type' => 'list_default',
'weight' => 4, 'weight' => 3,
), ),
), ),
'entity_type' => 'farm_asset', 'entity_type' => 'farm_asset',
@ -108,7 +108,7 @@ function farm_livestock_field_default_field_instances() {
'module' => 'options', 'module' => 'options',
'settings' => array(), 'settings' => array(),
'type' => 'options_select', 'type' => 'options_select',
'weight' => 11, 'weight' => 12,
), ),
); );
@ -126,7 +126,7 @@ function farm_livestock_field_default_field_instances() {
'view_mode' => 'full', 'view_mode' => 'full',
), ),
'type' => 'field_collection_fields', 'type' => 'field_collection_fields',
'weight' => 2, 'weight' => 1,
), ),
), ),
'entity_type' => 'farm_asset', 'entity_type' => 'farm_asset',
@ -157,7 +157,7 @@ function farm_livestock_field_default_field_instances() {
'module' => 'taxonomy', 'module' => 'taxonomy',
'settings' => array(), 'settings' => array(),
'type' => 'taxonomy_term_reference_link', 'type' => 'taxonomy_term_reference_link',
'weight' => 3, 'weight' => 2,
), ),
), ),
'entity_type' => 'farm_asset', 'entity_type' => 'farm_asset',
@ -175,7 +175,7 @@ function farm_livestock_field_default_field_instances() {
'size' => 60, 'size' => 60,
), ),
'type' => 'taxonomy_autocomplete', 'type' => 'taxonomy_autocomplete',
'weight' => 1, 'weight' => -9,
), ),
); );
@ -198,7 +198,7 @@ function farm_livestock_field_default_field_instances() {
'show_remaining_days' => FALSE, 'show_remaining_days' => FALSE,
), ),
'type' => 'date_default', 'type' => 'date_default',
'weight' => 6, 'weight' => 5,
), ),
), ),
'entity_type' => 'farm_asset', 'entity_type' => 'farm_asset',
@ -241,7 +241,7 @@ function farm_livestock_field_default_field_instances() {
'module' => 'text', 'module' => 'text',
'settings' => array(), 'settings' => array(),
'type' => 'text_default', 'type' => 'text_default',
'weight' => 9, 'weight' => 8,
), ),
), ),
'entity_type' => 'farm_asset', 'entity_type' => 'farm_asset',
@ -259,7 +259,7 @@ function farm_livestock_field_default_field_instances() {
'rows' => 5, 'rows' => 5,
), ),
'type' => 'text_textarea', 'type' => 'text_textarea',
'weight' => 2, 'weight' => -8,
), ),
); );
@ -275,7 +275,7 @@ function farm_livestock_field_default_field_instances() {
'module' => 'file', 'module' => 'file',
'settings' => array(), 'settings' => array(),
'type' => 'file_table', 'type' => 'file_table',
'weight' => 11, 'weight' => 10,
), ),
), ),
'entity_type' => 'farm_asset', 'entity_type' => 'farm_asset',
@ -300,6 +300,37 @@ function farm_livestock_field_default_field_instances() {
), ),
); );
// Exported field_instance: 'farm_asset-animal-field_farm_flags'.
$field_instances['farm_asset-animal-field_farm_flags'] = array(
'bundle' => 'animal',
'default_value' => NULL,
'deleted' => 0,
'description' => 'Add flags to this asset to enable better sorting and filtering of records.',
'display' => array(
'default' => array(
'label' => 'inline',
'module' => 'list',
'settings' => array(),
'type' => 'list_default',
'weight' => 7,
),
),
'entity_type' => 'farm_asset',
'field_name' => 'field_farm_flags',
'label' => 'Flags',
'required' => 0,
'settings' => array(
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'options',
'settings' => array(),
'type' => 'options_buttons',
'weight' => -7,
),
);
// Exported field_instance: 'farm_asset-animal-field_farm_images'. // Exported field_instance: 'farm_asset-animal-field_farm_images'.
$field_instances['farm_asset-animal-field_farm_images'] = array( $field_instances['farm_asset-animal-field_farm_images'] = array(
'bundle' => 'animal', 'bundle' => 'animal',
@ -321,7 +352,7 @@ function farm_livestock_field_default_field_instances() {
'colorbox_node_style_first' => 'large', 'colorbox_node_style_first' => 'large',
), ),
'type' => 'colorbox', 'type' => 'colorbox',
'weight' => 10, 'weight' => 9,
), ),
), ),
'entity_type' => 'farm_asset', 'entity_type' => 'farm_asset',
@ -366,7 +397,7 @@ function farm_livestock_field_default_field_instances() {
'link' => 1, 'link' => 1,
), ),
'type' => 'entityreference_label', 'type' => 'entityreference_label',
'weight' => 8, 'weight' => 6,
), ),
), ),
'entity_type' => 'farm_asset', 'entity_type' => 'farm_asset',
@ -578,7 +609,7 @@ function farm_livestock_field_default_field_instances() {
'module' => 'file', 'module' => 'file',
'settings' => array(), 'settings' => array(),
'type' => 'file_table', 'type' => 'file_table',
'weight' => 10, 'weight' => 11,
), ),
), ),
'entity_type' => 'log', 'entity_type' => 'log',
@ -603,6 +634,37 @@ function farm_livestock_field_default_field_instances() {
), ),
); );
// Exported field_instance: 'log-farm_birth-field_farm_flags'.
$field_instances['log-farm_birth-field_farm_flags'] = array(
'bundle' => 'farm_birth',
'default_value' => NULL,
'deleted' => 0,
'description' => 'Add flags to this log to enable better sorting and filtering of records.',
'display' => array(
'default' => array(
'label' => 'inline',
'module' => 'list',
'settings' => array(),
'type' => 'list_default',
'weight' => 7,
),
),
'entity_type' => 'log',
'field_name' => 'field_farm_flags',
'label' => 'Flags',
'required' => 0,
'settings' => array(
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'options',
'settings' => array(),
'type' => 'options_buttons',
'weight' => 8,
),
);
// Exported field_instance: 'log-farm_birth-field_farm_geofield'. // Exported field_instance: 'log-farm_birth-field_farm_geofield'.
$field_instances['log-farm_birth-field_farm_geofield'] = array( $field_instances['log-farm_birth-field_farm_geofield'] = array(
'bundle' => 'farm_birth', 'bundle' => 'farm_birth',
@ -618,7 +680,7 @@ function farm_livestock_field_default_field_instances() {
'map_layer_preset' => 'farm_map_geofield_formatter:openlayers_geofield_layer_formatter', 'map_layer_preset' => 'farm_map_geofield_formatter:openlayers_geofield_layer_formatter',
), ),
'type' => 'openlayers_geofield', 'type' => 'openlayers_geofield',
'weight' => 11, 'weight' => 12,
), ),
), ),
'entity_type' => 'log', 'entity_type' => 'log',
@ -688,7 +750,7 @@ function farm_livestock_field_default_field_instances() {
'colorbox_node_style_first' => 'large', 'colorbox_node_style_first' => 'large',
), ),
'type' => 'colorbox', 'type' => 'colorbox',
'weight' => 9, 'weight' => 10,
), ),
), ),
'entity_type' => 'log', 'entity_type' => 'log',
@ -767,7 +829,7 @@ function farm_livestock_field_default_field_instances() {
'module' => 'taxonomy', 'module' => 'taxonomy',
'settings' => array(), 'settings' => array(),
'type' => 'taxonomy_term_reference_link', 'type' => 'taxonomy_term_reference_link',
'weight' => 7, 'weight' => 8,
), ),
), ),
'entity_type' => 'log', 'entity_type' => 'log',
@ -801,7 +863,7 @@ function farm_livestock_field_default_field_instances() {
'link' => FALSE, 'link' => FALSE,
), ),
'type' => 'entityreference_label', 'type' => 'entityreference_label',
'weight' => 8, 'weight' => 9,
), ),
), ),
'entity_type' => 'log', 'entity_type' => 'log',
@ -957,7 +1019,7 @@ function farm_livestock_field_default_field_instances() {
'rows' => 5, 'rows' => 5,
), ),
'type' => 'text_textarea', 'type' => 'text_textarea',
'weight' => 8, 'weight' => 7,
), ),
); );
@ -998,7 +1060,7 @@ function farm_livestock_field_default_field_instances() {
'view_mode' => 'full', 'view_mode' => 'full',
), ),
'type' => 'entityreference_view_widget', 'type' => 'entityreference_view_widget',
'weight' => 1, 'weight' => -8,
), ),
); );
@ -1014,7 +1076,7 @@ function farm_livestock_field_default_field_instances() {
'module' => 'file', 'module' => 'file',
'settings' => array(), 'settings' => array(),
'type' => 'file_table', 'type' => 'file_table',
'weight' => 6, 'weight' => 8,
), ),
), ),
'entity_type' => 'log', 'entity_type' => 'log',
@ -1039,6 +1101,37 @@ function farm_livestock_field_default_field_instances() {
), ),
); );
// Exported field_instance: 'log-farm_medical-field_farm_flags'.
$field_instances['log-farm_medical-field_farm_flags'] = array(
'bundle' => 'farm_medical',
'default_value' => NULL,
'deleted' => 0,
'description' => 'Add flags to this log to enable better sorting and filtering of records.',
'display' => array(
'default' => array(
'label' => 'inline',
'module' => 'list',
'settings' => array(),
'type' => 'list_default',
'weight' => 4,
),
),
'entity_type' => 'log',
'field_name' => 'field_farm_flags',
'label' => 'Flags',
'required' => 0,
'settings' => array(
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'options',
'settings' => array(),
'type' => 'options_buttons',
'weight' => -6,
),
);
// Exported field_instance: 'log-farm_medical-field_farm_images'. // Exported field_instance: 'log-farm_medical-field_farm_images'.
$field_instances['log-farm_medical-field_farm_images'] = array( $field_instances['log-farm_medical-field_farm_images'] = array(
'bundle' => 'farm_medical', 'bundle' => 'farm_medical',
@ -1060,7 +1153,7 @@ function farm_livestock_field_default_field_instances() {
'colorbox_node_style_first' => 'large', 'colorbox_node_style_first' => 'large',
), ),
'type' => 'colorbox', 'type' => 'colorbox',
'weight' => 5, 'weight' => 7,
), ),
), ),
'entity_type' => 'log', 'entity_type' => 'log',
@ -1131,11 +1224,11 @@ function farm_livestock_field_default_field_instances() {
'description' => 'Use this to organize your logs into categories for easier searching and filtering later.', 'description' => 'Use this to organize your logs into categories for easier searching and filtering later.',
'display' => array( 'display' => array(
'default' => array( 'default' => array(
'label' => 'above', 'label' => 'inline',
'module' => 'taxonomy', 'module' => 'taxonomy',
'settings' => array(), 'settings' => array(),
'type' => 'taxonomy_term_reference_link', 'type' => 'taxonomy_term_reference_link',
'weight' => 7, 'weight' => 5,
), ),
), ),
'entity_type' => 'log', 'entity_type' => 'log',
@ -1169,7 +1262,7 @@ function farm_livestock_field_default_field_instances() {
'link' => FALSE, 'link' => FALSE,
), ),
'type' => 'entityreference_label', 'type' => 'entityreference_label',
'weight' => 4, 'weight' => 6,
), ),
), ),
'entity_type' => 'log', 'entity_type' => 'log',
@ -1251,12 +1344,14 @@ function farm_livestock_field_default_field_instances() {
'rows' => 5, 'rows' => 5,
), ),
'type' => 'text_textarea', 'type' => 'text_textarea',
'weight' => 2, 'weight' => -7,
), ),
); );
// Translatables // Translatables
// Included for use with string extractors like potx. // Included for use with string extractors like potx.
t('Add flags to this asset to enable better sorting and filtering of records.');
t('Add flags to this log to enable better sorting and filtering of records.');
t('Animals'); t('Animals');
t('Areas'); t('Areas');
t('Assigned to'); t('Assigned to');
@ -1267,6 +1362,7 @@ function farm_livestock_field_default_field_instances() {
t('Description'); 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('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('Files');
t('Flags');
t('Geometry'); t('Geometry');
t('Group membership'); t('Group membership');
t('Has this animal been castrated?'); t('Has this animal been castrated?');

View File

@ -50,7 +50,7 @@ function farm_livestock_field_group_info() {
$field_group->parent_name = 'group_farm_general'; $field_group->parent_name = 'group_farm_general';
$field_group->data = array( $field_group->data = array(
'label' => 'Assignment', 'label' => 'Assignment',
'weight' => '4', 'weight' => '-4',
'children' => array( 'children' => array(
0 => 'field_farm_log_owner', 0 => 'field_farm_log_owner',
), ),
@ -108,7 +108,7 @@ function farm_livestock_field_group_info() {
$field_group->parent_name = 'group_farm_general'; $field_group->parent_name = 'group_farm_general';
$field_group->data = array( $field_group->data = array(
'label' => 'Category', 'label' => 'Category',
'weight' => '3', 'weight' => '-5',
'children' => array( 'children' => array(
0 => 'field_farm_log_category', 0 => 'field_farm_log_category',
), ),
@ -252,8 +252,9 @@ function farm_livestock_field_group_info() {
'children' => array( 'children' => array(
0 => 'field_farm_animal_type', 0 => 'field_farm_animal_type',
1 => 'field_farm_description', 1 => 'field_farm_description',
2 => 'name', 2 => 'field_farm_flags',
3 => 'group_farm_individual', 3 => 'name',
4 => 'group_farm_individual',
), ),
'format_type' => 'field_group_easy_responsive_tabs_nav_item', 'format_type' => 'field_group_easy_responsive_tabs_nav_item',
'format_settings' => array( 'format_settings' => array(
@ -281,9 +282,10 @@ function farm_livestock_field_group_info() {
'weight' => '4', 'weight' => '4',
'children' => array( 'children' => array(
0 => 'field_farm_notes', 0 => 'field_farm_notes',
1 => 'timestamp', 1 => 'field_farm_flags',
2 => 'group_farm_category', 2 => 'timestamp',
3 => 'group_farm_assignment', 3 => 'group_farm_category',
4 => 'group_farm_assignment',
), ),
'format_type' => 'field_group_easy_responsive_tabs_nav_item', 'format_type' => 'field_group_easy_responsive_tabs_nav_item',
'format_settings' => array( 'format_settings' => array(
@ -311,10 +313,11 @@ function farm_livestock_field_group_info() {
'children' => array( 'children' => array(
0 => 'field_farm_asset', 0 => 'field_farm_asset',
1 => 'field_farm_notes', 1 => 'field_farm_notes',
2 => 'name', 2 => 'field_farm_flags',
3 => 'timestamp', 3 => 'name',
4 => 'group_farm_assignment', 4 => 'timestamp',
5 => 'group_farm_category', 5 => 'group_farm_assignment',
6 => 'group_farm_category',
), ),
'format_type' => 'field_group_easy_responsive_tabs_nav_item', 'format_type' => 'field_group_easy_responsive_tabs_nav_item',
'format_settings' => array( 'format_settings' => array(
@ -394,7 +397,7 @@ function farm_livestock_field_group_info() {
$field_group->parent_name = 'group_farm_general'; $field_group->parent_name = 'group_farm_general';
$field_group->data = array( $field_group->data = array(
'label' => 'Individual', 'label' => 'Individual',
'weight' => '3', 'weight' => '-6',
'children' => array( 'children' => array(
0 => 'field_farm_animal_castrated', 0 => 'field_farm_animal_castrated',
1 => 'field_farm_animal_nicknames', 1 => 'field_farm_animal_nicknames',
@ -668,8 +671,7 @@ function farm_livestock_field_group_info() {
0 => 'group_farm_files', 0 => 'group_farm_files',
1 => 'group_farm_general', 1 => 'group_farm_general',
2 => 'group_farm_inventory', 2 => 'group_farm_inventory',
3 => 'group_farm_movement', 3 => 'group_farm_location',
4 => 'group_farm_location',
), ),
'format_type' => 'field_group_easy_responsive_tabs_nav', 'format_type' => 'field_group_easy_responsive_tabs_nav',
'format_settings' => array( 'format_settings' => array(

View File

@ -13,6 +13,7 @@ dependencies[] = farm_asset
dependencies[] = farm_asset_children dependencies[] = farm_asset_children
dependencies[] = farm_asset_views dependencies[] = farm_asset_views
dependencies[] = farm_fields dependencies[] = farm_fields
dependencies[] = farm_flags
dependencies[] = farm_group dependencies[] = farm_group
dependencies[] = farm_inventory dependencies[] = farm_inventory
dependencies[] = farm_map dependencies[] = farm_map
@ -83,6 +84,7 @@ features[field_instance][] = farm_asset-animal-field_farm_animal_type
features[field_instance][] = farm_asset-animal-field_farm_date features[field_instance][] = farm_asset-animal-field_farm_date
features[field_instance][] = farm_asset-animal-field_farm_description features[field_instance][] = farm_asset-animal-field_farm_description
features[field_instance][] = farm_asset-animal-field_farm_files features[field_instance][] = farm_asset-animal-field_farm_files
features[field_instance][] = farm_asset-animal-field_farm_flags
features[field_instance][] = farm_asset-animal-field_farm_images features[field_instance][] = farm_asset-animal-field_farm_images
features[field_instance][] = farm_asset-animal-field_farm_parent 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_id
@ -91,6 +93,7 @@ features[field_instance][] = field_collection_item-field_farm_animal_tag-field_f
features[field_instance][] = log-farm_birth-field_farm_area 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_asset
features[field_instance][] = log-farm_birth-field_farm_files features[field_instance][] = log-farm_birth-field_farm_files
features[field_instance][] = log-farm_birth-field_farm_flags
features[field_instance][] = log-farm_birth-field_farm_geofield 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_images
features[field_instance][] = log-farm_birth-field_farm_inventory features[field_instance][] = log-farm_birth-field_farm_inventory
@ -102,6 +105,7 @@ features[field_instance][] = log-farm_birth-field_farm_movement
features[field_instance][] = log-farm_birth-field_farm_notes 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_asset
features[field_instance][] = log-farm_medical-field_farm_files features[field_instance][] = log-farm_medical-field_farm_files
features[field_instance][] = log-farm_medical-field_farm_flags
features[field_instance][] = log-farm_medical-field_farm_images features[field_instance][] = log-farm_medical-field_farm_images
features[field_instance][] = log-farm_medical-field_farm_inventory features[field_instance][] = log-farm_medical-field_farm_inventory
features[field_instance][] = log-farm_medical-field_farm_log_category features[field_instance][] = log-farm_medical-field_farm_log_category

View File

@ -95,7 +95,7 @@ function farm_log_activity_field_default_field_instances() {
'module' => 'file', 'module' => 'file',
'settings' => array(), 'settings' => array(),
'type' => 'file_table', 'type' => 'file_table',
'weight' => 10, 'weight' => 11,
), ),
), ),
'entity_type' => 'log', 'entity_type' => 'log',
@ -120,6 +120,37 @@ function farm_log_activity_field_default_field_instances() {
), ),
); );
// Exported field_instance: 'log-farm_activity-field_farm_flags'.
$field_instances['log-farm_activity-field_farm_flags'] = array(
'bundle' => 'farm_activity',
'default_value' => NULL,
'deleted' => 0,
'description' => 'Add flags to this log to enable better sorting and filtering of records.',
'display' => array(
'default' => array(
'label' => 'inline',
'module' => 'list',
'settings' => array(),
'type' => 'list_default',
'weight' => 7,
),
),
'entity_type' => 'log',
'field_name' => 'field_farm_flags',
'label' => 'Flags',
'required' => 0,
'settings' => array(
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'options',
'settings' => array(),
'type' => 'options_buttons',
'weight' => -7,
),
);
// Exported field_instance: 'log-farm_activity-field_farm_geofield'. // Exported field_instance: 'log-farm_activity-field_farm_geofield'.
$field_instances['log-farm_activity-field_farm_geofield'] = array( $field_instances['log-farm_activity-field_farm_geofield'] = array(
'bundle' => 'farm_activity', 'bundle' => 'farm_activity',
@ -135,7 +166,7 @@ function farm_log_activity_field_default_field_instances() {
'map_layer_preset' => 'farm_map_geofield_formatter:openlayers_geofield_layer_formatter', 'map_layer_preset' => 'farm_map_geofield_formatter:openlayers_geofield_layer_formatter',
), ),
'type' => 'openlayers_geofield', 'type' => 'openlayers_geofield',
'weight' => 11, 'weight' => 12,
), ),
), ),
'entity_type' => 'log', 'entity_type' => 'log',
@ -206,7 +237,7 @@ function farm_log_activity_field_default_field_instances() {
'colorbox_node_style_first' => 'large', 'colorbox_node_style_first' => 'large',
), ),
'type' => 'colorbox', 'type' => 'colorbox',
'weight' => 9, 'weight' => 10,
), ),
), ),
'entity_type' => 'log', 'entity_type' => 'log',
@ -281,7 +312,7 @@ function farm_log_activity_field_default_field_instances() {
'module' => 'taxonomy', 'module' => 'taxonomy',
'settings' => array(), 'settings' => array(),
'type' => 'taxonomy_term_reference_plain', 'type' => 'taxonomy_term_reference_plain',
'weight' => 7, 'weight' => 8,
), ),
), ),
'entity_type' => 'log', 'entity_type' => 'log',
@ -315,7 +346,7 @@ function farm_log_activity_field_default_field_instances() {
'link' => FALSE, 'link' => FALSE,
), ),
'type' => 'entityreference_label', 'type' => 'entityreference_label',
'weight' => 8, 'weight' => 9,
), ),
), ),
'entity_type' => 'log', 'entity_type' => 'log',
@ -430,7 +461,7 @@ function farm_log_activity_field_default_field_instances() {
'rows' => 5, 'rows' => 5,
), ),
'type' => 'text_textarea', 'type' => 'text_textarea',
'weight' => 8, 'weight' => -8,
), ),
); );
@ -469,10 +500,12 @@ function farm_log_activity_field_default_field_instances() {
// Translatables // Translatables
// Included for use with string extractors like potx. // Included for use with string extractors like potx.
t('Add flags to this log to enable better sorting and filtering of records.');
t('Areas'); t('Areas');
t('Assets'); t('Assets');
t('Assigned to'); t('Assigned to');
t('Files'); t('Files');
t('Flags');
t('Geometry'); t('Geometry');
t('Group membership'); t('Group membership');
t('Inventory adjustments'); t('Inventory adjustments');

View File

@ -50,7 +50,7 @@ function farm_log_activity_field_group_info() {
$field_group->parent_name = 'group_farm_tabs'; $field_group->parent_name = 'group_farm_tabs';
$field_group->data = array( $field_group->data = array(
'label' => 'Assets', 'label' => 'Assets',
'weight' => '2', 'weight' => '3',
'children' => array( 'children' => array(
0 => 'field_farm_asset', 0 => 'field_farm_asset',
1 => 'field_farm_movement', 1 => 'field_farm_movement',
@ -81,7 +81,7 @@ function farm_log_activity_field_group_info() {
$field_group->parent_name = 'group_farm_general'; $field_group->parent_name = 'group_farm_general';
$field_group->data = array( $field_group->data = array(
'label' => 'Assignment', 'label' => 'Assignment',
'weight' => '10', 'weight' => '-5',
'children' => array( 'children' => array(
0 => 'field_farm_log_owner', 0 => 'field_farm_log_owner',
), ),
@ -110,7 +110,7 @@ function farm_log_activity_field_group_info() {
$field_group->parent_name = 'group_farm_general'; $field_group->parent_name = 'group_farm_general';
$field_group->data = array( $field_group->data = array(
'label' => 'Category', 'label' => 'Category',
'weight' => '9', 'weight' => '-6',
'children' => array( 'children' => array(
0 => 'field_farm_log_category', 0 => 'field_farm_log_category',
), ),
@ -139,7 +139,7 @@ function farm_log_activity_field_group_info() {
$field_group->parent_name = 'group_farm_tabs'; $field_group->parent_name = 'group_farm_tabs';
$field_group->data = array( $field_group->data = array(
'label' => 'Files', 'label' => 'Files',
'weight' => '6', 'weight' => '7',
'children' => array( 'children' => array(
0 => 'field_farm_files', 0 => 'field_farm_files',
1 => 'field_farm_images', 1 => 'field_farm_images',
@ -170,10 +170,11 @@ function farm_log_activity_field_group_info() {
'weight' => '1', 'weight' => '1',
'children' => array( 'children' => array(
0 => 'field_farm_notes', 0 => 'field_farm_notes',
1 => 'name', 1 => 'field_farm_flags',
2 => 'timestamp', 2 => 'name',
3 => 'group_farm_assignment', 3 => 'timestamp',
4 => 'group_farm_category', 4 => 'group_farm_assignment',
5 => 'group_farm_category',
), ),
'format_type' => 'field_group_easy_responsive_tabs_nav_item', 'format_type' => 'field_group_easy_responsive_tabs_nav_item',
'format_settings' => array( 'format_settings' => array(
@ -227,7 +228,7 @@ function farm_log_activity_field_group_info() {
$field_group->parent_name = 'group_farm_tabs'; $field_group->parent_name = 'group_farm_tabs';
$field_group->data = array( $field_group->data = array(
'label' => 'Inventory', 'label' => 'Inventory',
'weight' => '5', 'weight' => '6',
'children' => array( 'children' => array(
0 => 'field_farm_inventory', 0 => 'field_farm_inventory',
), ),
@ -253,7 +254,7 @@ function farm_log_activity_field_group_info() {
$field_group->parent_name = 'group_farm_tabs'; $field_group->parent_name = 'group_farm_tabs';
$field_group->data = array( $field_group->data = array(
'label' => 'Location', 'label' => 'Location',
'weight' => '3', 'weight' => '4',
'children' => array( 'children' => array(
0 => 'group_farm_areas', 0 => 'group_farm_areas',
1 => 'group_farm_geometry', 1 => 'group_farm_geometry',
@ -280,7 +281,7 @@ function farm_log_activity_field_group_info() {
$field_group->parent_name = 'group_farm_tabs'; $field_group->parent_name = 'group_farm_tabs';
$field_group->data = array( $field_group->data = array(
'label' => 'Quantity', 'label' => 'Quantity',
'weight' => '4', 'weight' => '5',
'children' => array( 'children' => array(
0 => 'field_farm_quantity', 0 => 'field_farm_quantity',
), ),

View File

@ -14,6 +14,7 @@ dependencies[] = farm_area
dependencies[] = farm_asset dependencies[] = farm_asset
dependencies[] = farm_asset_views dependencies[] = farm_asset_views
dependencies[] = farm_fields dependencies[] = farm_fields
dependencies[] = farm_flags
dependencies[] = farm_group dependencies[] = farm_group
dependencies[] = farm_inventory dependencies[] = farm_inventory
dependencies[] = farm_map dependencies[] = farm_map
@ -27,6 +28,7 @@ dependencies[] = file
dependencies[] = geofield dependencies[] = geofield
dependencies[] = geophp dependencies[] = geophp
dependencies[] = image dependencies[] = image
dependencies[] = list
dependencies[] = log dependencies[] = log
dependencies[] = multiupload_filefield_widget dependencies[] = multiupload_filefield_widget
dependencies[] = multiupload_imagefield_widget dependencies[] = multiupload_imagefield_widget
@ -53,6 +55,7 @@ features[field_group][] = group_farm_tabs|log|farm_activity|form
features[field_instance][] = log-farm_activity-field_farm_area 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_asset
features[field_instance][] = log-farm_activity-field_farm_files features[field_instance][] = log-farm_activity-field_farm_files
features[field_instance][] = log-farm_activity-field_farm_flags
features[field_instance][] = log-farm_activity-field_farm_geofield 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_images
features[field_instance][] = log-farm_activity-field_farm_inventory features[field_instance][] = log-farm_activity-field_farm_inventory

View File

@ -100,7 +100,7 @@ function farm_log_harvest_field_default_field_instances() {
'module' => 'file', 'module' => 'file',
'settings' => array(), 'settings' => array(),
'type' => 'file_table', 'type' => 'file_table',
'weight' => 10, 'weight' => 11,
), ),
'token' => array( 'token' => array(
'label' => 'above', 'label' => 'above',
@ -131,6 +131,37 @@ function farm_log_harvest_field_default_field_instances() {
), ),
); );
// Exported field_instance: 'log-farm_harvest-field_farm_flags'.
$field_instances['log-farm_harvest-field_farm_flags'] = array(
'bundle' => 'farm_harvest',
'default_value' => NULL,
'deleted' => 0,
'description' => 'Add flags to this log to enable better sorting and filtering of records.',
'display' => array(
'default' => array(
'label' => 'inline',
'module' => 'list',
'settings' => array(),
'type' => 'list_default',
'weight' => 7,
),
),
'entity_type' => 'log',
'field_name' => 'field_farm_flags',
'label' => 'Flags',
'required' => 0,
'settings' => array(
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'options',
'settings' => array(),
'type' => 'options_buttons',
'weight' => -6,
),
);
// Exported field_instance: 'log-farm_harvest-field_farm_geofield'. // Exported field_instance: 'log-farm_harvest-field_farm_geofield'.
$field_instances['log-farm_harvest-field_farm_geofield'] = array( $field_instances['log-farm_harvest-field_farm_geofield'] = array(
'bundle' => 'farm_harvest', 'bundle' => 'farm_harvest',
@ -146,7 +177,7 @@ function farm_log_harvest_field_default_field_instances() {
'map_layer_preset' => 'farm_map_geofield_formatter:openlayers_geofield_layer_formatter', 'map_layer_preset' => 'farm_map_geofield_formatter:openlayers_geofield_layer_formatter',
), ),
'type' => 'openlayers_geofield', 'type' => 'openlayers_geofield',
'weight' => 11, 'weight' => 12,
), ),
'token' => array( 'token' => array(
'label' => 'above', 'label' => 'above',
@ -218,7 +249,7 @@ function farm_log_harvest_field_default_field_instances() {
'colorbox_node_style_first' => 'large', 'colorbox_node_style_first' => 'large',
), ),
'type' => 'colorbox', 'type' => 'colorbox',
'weight' => 9, 'weight' => 10,
), ),
'token' => array( 'token' => array(
'label' => 'above', 'label' => 'above',
@ -299,7 +330,7 @@ function farm_log_harvest_field_default_field_instances() {
'module' => 'taxonomy', 'module' => 'taxonomy',
'settings' => array(), 'settings' => array(),
'type' => 'taxonomy_term_reference_plain', 'type' => 'taxonomy_term_reference_plain',
'weight' => 7, 'weight' => 8,
), ),
), ),
'entity_type' => 'log', 'entity_type' => 'log',
@ -333,7 +364,7 @@ function farm_log_harvest_field_default_field_instances() {
'link' => FALSE, 'link' => FALSE,
), ),
'type' => 'entityreference_label', 'type' => 'entityreference_label',
'weight' => 8, 'weight' => 9,
), ),
), ),
'entity_type' => 'log', 'entity_type' => 'log',
@ -382,7 +413,7 @@ function farm_log_harvest_field_default_field_instances() {
'size' => 60, 'size' => 60,
), ),
'type' => 'text_textfield', 'type' => 'text_textfield',
'weight' => 1, 'weight' => -8,
), ),
); );
@ -455,7 +486,7 @@ function farm_log_harvest_field_default_field_instances() {
'rows' => 5, 'rows' => 5,
), ),
'type' => 'text_textarea', 'type' => 'text_textarea',
'weight' => 2, 'weight' => -7,
), ),
); );
@ -500,11 +531,13 @@ function farm_log_harvest_field_default_field_instances() {
// Translatables // Translatables
// Included for use with string extractors like potx. // Included for use with string extractors like potx.
t('Add flags to this log to enable better sorting and filtering of records.');
t('Areas'); t('Areas');
t('Assets'); t('Assets');
t('Assigned to'); t('Assigned to');
t('Describe the quantity of this harvest, using a value, unit, and measure. For example, if you harvested 100 pounds of potatoes, enter "100" in the Value field, "lbs" in the Units field, and "Weight" in the Measure field. As you type the unit, you will have the option of selecting from units that you\'ve entered in the past.'); t('Describe the quantity of this harvest, using a value, unit, and measure. For example, if you harvested 100 pounds of potatoes, enter "100" in the Value field, "lbs" in the Units field, and "Weight" in the Measure field. As you type the unit, you will have the option of selecting from units that you\'ve entered in the past.');
t('Files'); t('Files');
t('Flags');
t('Geometry'); t('Geometry');
t('Harvest lot number'); t('Harvest lot number');
t('If this harvest is part of a batch or lot, enter the lot number here.'); t('If this harvest is part of a batch or lot, enter the lot number here.');

View File

@ -21,7 +21,7 @@ function farm_log_harvest_field_group_info() {
$field_group->parent_name = 'group_farm_location'; $field_group->parent_name = 'group_farm_location';
$field_group->data = array( $field_group->data = array(
'label' => 'Areas', 'label' => 'Areas',
'weight' => '14', 'weight' => '24',
'children' => array( 'children' => array(
0 => 'field_farm_area', 0 => 'field_farm_area',
), ),
@ -77,7 +77,7 @@ function farm_log_harvest_field_group_info() {
$field_group->parent_name = 'group_farm_general'; $field_group->parent_name = 'group_farm_general';
$field_group->data = array( $field_group->data = array(
'label' => 'Assignment', 'label' => 'Assignment',
'weight' => '4', 'weight' => '-4',
'children' => array( 'children' => array(
0 => 'field_farm_log_owner', 0 => 'field_farm_log_owner',
), ),
@ -106,7 +106,7 @@ function farm_log_harvest_field_group_info() {
$field_group->parent_name = 'group_farm_general'; $field_group->parent_name = 'group_farm_general';
$field_group->data = array( $field_group->data = array(
'label' => 'Category', 'label' => 'Category',
'weight' => '3', 'weight' => '-5',
'children' => array( 'children' => array(
0 => 'field_farm_log_category', 0 => 'field_farm_log_category',
), ),
@ -167,10 +167,11 @@ function farm_log_harvest_field_group_info() {
'children' => array( 'children' => array(
0 => 'field_farm_notes', 0 => 'field_farm_notes',
1 => 'field_farm_lot_number', 1 => 'field_farm_lot_number',
2 => 'name', 2 => 'field_farm_flags',
3 => 'timestamp', 3 => 'name',
4 => 'group_farm_category', 4 => 'timestamp',
5 => 'group_farm_assignment', 5 => 'group_farm_category',
6 => 'group_farm_assignment',
), ),
'format_type' => 'field_group_easy_responsive_tabs_nav_item', 'format_type' => 'field_group_easy_responsive_tabs_nav_item',
'format_settings' => array( 'format_settings' => array(
@ -195,7 +196,7 @@ function farm_log_harvest_field_group_info() {
$field_group->parent_name = 'group_farm_location'; $field_group->parent_name = 'group_farm_location';
$field_group->data = array( $field_group->data = array(
'label' => 'Geometry', 'label' => 'Geometry',
'weight' => '16', 'weight' => '25',
'children' => array( 'children' => array(
0 => 'field_farm_geofield', 0 => 'field_farm_geofield',
), ),

View File

@ -14,6 +14,7 @@ dependencies[] = farm_area
dependencies[] = farm_asset dependencies[] = farm_asset
dependencies[] = farm_asset_views dependencies[] = farm_asset_views
dependencies[] = farm_fields dependencies[] = farm_fields
dependencies[] = farm_flags
dependencies[] = farm_inventory dependencies[] = farm_inventory
dependencies[] = farm_map dependencies[] = farm_map
dependencies[] = farm_movement dependencies[] = farm_movement
@ -26,6 +27,7 @@ dependencies[] = file
dependencies[] = geofield dependencies[] = geofield
dependencies[] = geophp dependencies[] = geophp
dependencies[] = image dependencies[] = image
dependencies[] = list
dependencies[] = log dependencies[] = log
dependencies[] = multiupload_filefield_widget dependencies[] = multiupload_filefield_widget
dependencies[] = multiupload_imagefield_widget dependencies[] = multiupload_imagefield_widget
@ -52,6 +54,7 @@ features[field_group][] = group_farm_tabs|log|farm_harvest|form
features[field_instance][] = log-farm_harvest-field_farm_area features[field_instance][] = log-farm_harvest-field_farm_area
features[field_instance][] = log-farm_harvest-field_farm_asset features[field_instance][] = log-farm_harvest-field_farm_asset
features[field_instance][] = log-farm_harvest-field_farm_files features[field_instance][] = log-farm_harvest-field_farm_files
features[field_instance][] = log-farm_harvest-field_farm_flags
features[field_instance][] = log-farm_harvest-field_farm_geofield 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_images
features[field_instance][] = log-farm_harvest-field_farm_inventory features[field_instance][] = log-farm_harvest-field_farm_inventory

View File

@ -139,7 +139,7 @@ function farm_log_input_field_default_field_instances() {
'year_range' => '-3:+3', 'year_range' => '-3:+3',
), ),
'type' => 'date_select', 'type' => 'date_select',
'weight' => 6, 'weight' => -3,
), ),
); );
@ -155,7 +155,7 @@ function farm_log_input_field_default_field_instances() {
'module' => 'file', 'module' => 'file',
'settings' => array(), 'settings' => array(),
'type' => 'file_table', 'type' => 'file_table',
'weight' => 15, 'weight' => 16,
), ),
'token' => array( 'token' => array(
'label' => 'above', 'label' => 'above',
@ -186,6 +186,37 @@ function farm_log_input_field_default_field_instances() {
), ),
); );
// Exported field_instance: 'log-farm_input-field_farm_flags'.
$field_instances['log-farm_input-field_farm_flags'] = array(
'bundle' => 'farm_input',
'default_value' => NULL,
'deleted' => 0,
'description' => 'Add flags to this log to enable better sorting and filtering of records.',
'display' => array(
'default' => array(
'label' => 'inline',
'module' => 'list',
'settings' => array(),
'type' => 'list_default',
'weight' => 12,
),
),
'entity_type' => 'log',
'field_name' => 'field_farm_flags',
'label' => 'Flags',
'required' => 0,
'settings' => array(
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'options',
'settings' => array(),
'type' => 'options_buttons',
'weight' => -1,
),
);
// Exported field_instance: 'log-farm_input-field_farm_geofield'. // Exported field_instance: 'log-farm_input-field_farm_geofield'.
$field_instances['log-farm_input-field_farm_geofield'] = array( $field_instances['log-farm_input-field_farm_geofield'] = array(
'bundle' => 'farm_input', 'bundle' => 'farm_input',
@ -201,7 +232,7 @@ function farm_log_input_field_default_field_instances() {
'map_layer_preset' => 'farm_map_geofield_formatter:openlayers_geofield_layer_formatter', 'map_layer_preset' => 'farm_map_geofield_formatter:openlayers_geofield_layer_formatter',
), ),
'type' => 'openlayers_geofield', 'type' => 'openlayers_geofield',
'weight' => 16, 'weight' => 17,
), ),
'token' => array( 'token' => array(
'label' => 'above', 'label' => 'above',
@ -273,7 +304,7 @@ function farm_log_input_field_default_field_instances() {
'colorbox_node_style_first' => 'large', 'colorbox_node_style_first' => 'large',
), ),
'type' => 'colorbox', 'type' => 'colorbox',
'weight' => 14, 'weight' => 15,
), ),
'token' => array( 'token' => array(
'label' => 'above', 'label' => 'above',
@ -345,7 +376,7 @@ function farm_log_input_field_default_field_instances() {
'size' => 60, 'size' => 60,
), ),
'type' => 'text_textfield', 'type' => 'text_textfield',
'weight' => 3, 'weight' => -6,
), ),
); );
@ -385,7 +416,7 @@ function farm_log_input_field_default_field_instances() {
'size' => 60, 'size' => 60,
), ),
'type' => 'text_textfield', 'type' => 'text_textfield',
'weight' => 2, 'weight' => -7,
), ),
); );
@ -425,7 +456,7 @@ function farm_log_input_field_default_field_instances() {
'size' => 60, 'size' => 60,
), ),
'type' => 'text_textfield', 'type' => 'text_textfield',
'weight' => 4, 'weight' => -5,
), ),
); );
@ -474,7 +505,7 @@ function farm_log_input_field_default_field_instances() {
'module' => 'taxonomy', 'module' => 'taxonomy',
'settings' => array(), 'settings' => array(),
'type' => 'taxonomy_term_reference_plain', 'type' => 'taxonomy_term_reference_plain',
'weight' => 12, 'weight' => 13,
), ),
), ),
'entity_type' => 'log', 'entity_type' => 'log',
@ -508,7 +539,7 @@ function farm_log_input_field_default_field_instances() {
'link' => FALSE, 'link' => FALSE,
), ),
'type' => 'entityreference_label', 'type' => 'entityreference_label',
'weight' => 13, 'weight' => 14,
), ),
), ),
'entity_type' => 'log', 'entity_type' => 'log',
@ -557,7 +588,7 @@ function farm_log_input_field_default_field_instances() {
'size' => 60, 'size' => 60,
), ),
'type' => 'text_textfield', 'type' => 'text_textfield',
'weight' => 5, 'weight' => -4,
), ),
); );
@ -597,7 +628,7 @@ function farm_log_input_field_default_field_instances() {
'size' => 60, 'size' => 60,
), ),
'type' => 'taxonomy_autocomplete', 'type' => 'taxonomy_autocomplete',
'weight' => 1, 'weight' => -8,
), ),
); );
@ -670,7 +701,7 @@ function farm_log_input_field_default_field_instances() {
'rows' => 5, 'rows' => 5,
), ),
'type' => 'text_textarea', 'type' => 'text_textarea',
'weight' => 7, 'weight' => -2,
), ),
); );
@ -715,6 +746,7 @@ function farm_log_input_field_default_field_instances() {
// Translatables // Translatables
// Included for use with string extractors like potx. // Included for use with string extractors like potx.
t('Add flags to this log to enable better sorting and filtering of records.');
t('Application method'); t('Application method');
t('Areas'); t('Areas');
t('Assets'); t('Assets');
@ -722,6 +754,7 @@ function farm_log_input_field_default_field_instances() {
t('Date purchased'); t('Date purchased');
t('Describe the quantity of this input, using a value, unit, and measure. For example, if you used 10 gallons of liquid fertilizer, enter "10" in the Value field, and "gallons" in the Units field. As you type the unit, you will have the option of selecting from units that you\'ve entered in the past.'); t('Describe the quantity of this input, using a value, unit, and measure. For example, if you used 10 gallons of liquid fertilizer, enter "10" in the Value field, and "gallons" in the Units field. As you type the unit, you will have the option of selecting from units that you\'ve entered in the past.');
t('Files'); t('Files');
t('Flags');
t('Geometry'); t('Geometry');
t('How was this input applied?'); t('How was this input applied?');
t('If the manufacturer assigned this input a lot number, enter it here.'); t('If the manufacturer assigned this input a lot number, enter it here.');

View File

@ -21,7 +21,7 @@ function farm_log_input_field_group_info() {
$field_group->parent_name = 'group_farm_location'; $field_group->parent_name = 'group_farm_location';
$field_group->data = array( $field_group->data = array(
'label' => 'Areas', 'label' => 'Areas',
'weight' => '3', 'weight' => '19',
'children' => array( 'children' => array(
0 => 'field_farm_area', 0 => 'field_farm_area',
), ),
@ -77,7 +77,7 @@ function farm_log_input_field_group_info() {
$field_group->parent_name = 'group_farm_general'; $field_group->parent_name = 'group_farm_general';
$field_group->data = array( $field_group->data = array(
'label' => 'Assignment', 'label' => 'Assignment',
'weight' => '9', 'weight' => '1',
'children' => array( 'children' => array(
0 => 'field_farm_log_owner', 0 => 'field_farm_log_owner',
), ),
@ -106,7 +106,7 @@ function farm_log_input_field_group_info() {
$field_group->parent_name = 'group_farm_general'; $field_group->parent_name = 'group_farm_general';
$field_group->data = array( $field_group->data = array(
'label' => 'Category', 'label' => 'Category',
'weight' => '8', 'weight' => '0',
'children' => array( 'children' => array(
0 => 'field_farm_log_category', 0 => 'field_farm_log_category',
), ),
@ -172,10 +172,11 @@ function farm_log_input_field_group_info() {
4 => 'field_farm_notes', 4 => 'field_farm_notes',
5 => 'field_farm_date_purchase', 5 => 'field_farm_date_purchase',
6 => 'field_farm_lot_number', 6 => 'field_farm_lot_number',
7 => 'name', 7 => 'field_farm_flags',
8 => 'timestamp', 8 => 'name',
9 => 'group_farm_category', 9 => 'timestamp',
10 => 'group_farm_assignment', 10 => 'group_farm_category',
11 => 'group_farm_assignment',
), ),
'format_type' => 'field_group_easy_responsive_tabs_nav_item', 'format_type' => 'field_group_easy_responsive_tabs_nav_item',
'format_settings' => array( 'format_settings' => array(
@ -200,7 +201,7 @@ function farm_log_input_field_group_info() {
$field_group->parent_name = 'group_farm_location'; $field_group->parent_name = 'group_farm_location';
$field_group->data = array( $field_group->data = array(
'label' => 'Geometry', 'label' => 'Geometry',
'weight' => '4', 'weight' => '20',
'children' => array( 'children' => array(
0 => 'field_farm_geofield', 0 => 'field_farm_geofield',
), ),
@ -313,10 +314,9 @@ function farm_log_input_field_group_info() {
0 => 'group_farm_assets', 0 => 'group_farm_assets',
1 => 'group_farm_files', 1 => 'group_farm_files',
2 => 'group_farm_general', 2 => 'group_farm_general',
3 => 'group_farm_references', 3 => 'group_farm_quantity',
4 => 'group_farm_quantity', 4 => 'group_farm_inventory',
5 => 'group_farm_inventory', 5 => 'group_farm_location',
6 => 'group_farm_location',
), ),
'format_type' => 'field_group_easy_responsive_tabs_nav', 'format_type' => 'field_group_easy_responsive_tabs_nav',
'format_settings' => array( 'format_settings' => array(

View File

@ -14,6 +14,7 @@ dependencies[] = farm_area
dependencies[] = farm_asset dependencies[] = farm_asset
dependencies[] = farm_asset_views dependencies[] = farm_asset_views
dependencies[] = farm_fields dependencies[] = farm_fields
dependencies[] = farm_flags
dependencies[] = farm_inventory dependencies[] = farm_inventory
dependencies[] = farm_map dependencies[] = farm_map
dependencies[] = farm_movement dependencies[] = farm_movement
@ -26,6 +27,7 @@ dependencies[] = file
dependencies[] = geofield dependencies[] = geofield
dependencies[] = geophp dependencies[] = geophp
dependencies[] = image dependencies[] = image
dependencies[] = list
dependencies[] = log dependencies[] = log
dependencies[] = multiupload_filefield_widget dependencies[] = multiupload_filefield_widget
dependencies[] = multiupload_imagefield_widget dependencies[] = multiupload_imagefield_widget
@ -61,6 +63,7 @@ features[field_instance][] = log-farm_input-field_farm_area
features[field_instance][] = log-farm_input-field_farm_asset features[field_instance][] = log-farm_input-field_farm_asset
features[field_instance][] = log-farm_input-field_farm_date_purchase features[field_instance][] = log-farm_input-field_farm_date_purchase
features[field_instance][] = log-farm_input-field_farm_files features[field_instance][] = log-farm_input-field_farm_files
features[field_instance][] = log-farm_input-field_farm_flags
features[field_instance][] = log-farm_input-field_farm_geofield features[field_instance][] = log-farm_input-field_farm_geofield
features[field_instance][] = log-farm_input-field_farm_images features[field_instance][] = log-farm_input-field_farm_images
features[field_instance][] = log-farm_input-field_farm_input_method features[field_instance][] = log-farm_input-field_farm_input_method

View File

@ -95,7 +95,7 @@ function farm_log_observation_field_default_field_instances() {
'module' => 'file', 'module' => 'file',
'settings' => array(), 'settings' => array(),
'type' => 'file_table', 'type' => 'file_table',
'weight' => 10, 'weight' => 11,
), ),
), ),
'entity_type' => 'log', 'entity_type' => 'log',
@ -120,6 +120,37 @@ function farm_log_observation_field_default_field_instances() {
), ),
); );
// Exported field_instance: 'log-farm_observation-field_farm_flags'.
$field_instances['log-farm_observation-field_farm_flags'] = array(
'bundle' => 'farm_observation',
'default_value' => NULL,
'deleted' => 0,
'description' => 'Add flags to this log to enable better sorting and filtering of records.',
'display' => array(
'default' => array(
'label' => 'inline',
'module' => 'list',
'settings' => array(),
'type' => 'list_default',
'weight' => 7,
),
),
'entity_type' => 'log',
'field_name' => 'field_farm_flags',
'label' => 'Flags',
'required' => 0,
'settings' => array(
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'options',
'settings' => array(),
'type' => 'options_buttons',
'weight' => -7,
),
);
// Exported field_instance: 'log-farm_observation-field_farm_geofield'. // Exported field_instance: 'log-farm_observation-field_farm_geofield'.
$field_instances['log-farm_observation-field_farm_geofield'] = array( $field_instances['log-farm_observation-field_farm_geofield'] = array(
'bundle' => 'farm_observation', 'bundle' => 'farm_observation',
@ -135,7 +166,7 @@ function farm_log_observation_field_default_field_instances() {
'map_layer_preset' => 'farm_map_geofield_formatter:openlayers_geofield_layer_formatter', 'map_layer_preset' => 'farm_map_geofield_formatter:openlayers_geofield_layer_formatter',
), ),
'type' => 'openlayers_geofield', 'type' => 'openlayers_geofield',
'weight' => 11, 'weight' => 12,
), ),
), ),
'entity_type' => 'log', 'entity_type' => 'log',
@ -201,7 +232,7 @@ function farm_log_observation_field_default_field_instances() {
'colorbox_node_style_first' => 'large', 'colorbox_node_style_first' => 'large',
), ),
'type' => 'colorbox', 'type' => 'colorbox',
'weight' => 9, 'weight' => 10,
), ),
), ),
'entity_type' => 'log', 'entity_type' => 'log',
@ -276,7 +307,7 @@ function farm_log_observation_field_default_field_instances() {
'module' => 'taxonomy', 'module' => 'taxonomy',
'settings' => array(), 'settings' => array(),
'type' => 'taxonomy_term_reference_plain', 'type' => 'taxonomy_term_reference_plain',
'weight' => 7, 'weight' => 8,
), ),
), ),
'entity_type' => 'log', 'entity_type' => 'log',
@ -291,7 +322,7 @@ function farm_log_observation_field_default_field_instances() {
'module' => 'options', 'module' => 'options',
'settings' => array(), 'settings' => array(),
'type' => 'options_select', 'type' => 'options_select',
'weight' => 7, 'weight' => 9,
), ),
); );
@ -310,7 +341,7 @@ function farm_log_observation_field_default_field_instances() {
'link' => FALSE, 'link' => FALSE,
), ),
'type' => 'entityreference_label', 'type' => 'entityreference_label',
'weight' => 8, 'weight' => 9,
), ),
), ),
'entity_type' => 'log', 'entity_type' => 'log',
@ -425,7 +456,7 @@ function farm_log_observation_field_default_field_instances() {
'rows' => 5, 'rows' => 5,
), ),
'type' => 'text_textarea', 'type' => 'text_textarea',
'weight' => 6, 'weight' => -8,
), ),
); );
@ -464,10 +495,12 @@ function farm_log_observation_field_default_field_instances() {
// Translatables // Translatables
// Included for use with string extractors like potx. // Included for use with string extractors like potx.
t('Add flags to this log to enable better sorting and filtering of records.');
t('Areas'); t('Areas');
t('Assets'); t('Assets');
t('Assigned to'); t('Assigned to');
t('Files'); t('Files');
t('Flags');
t('Geometry'); t('Geometry');
t('Group membership'); t('Group membership');
t('Inventory adjustments'); t('Inventory adjustments');

View File

@ -81,7 +81,7 @@ function farm_log_observation_field_group_info() {
$field_group->parent_name = 'group_farm_general'; $field_group->parent_name = 'group_farm_general';
$field_group->data = array( $field_group->data = array(
'label' => 'Assignment', 'label' => 'Assignment',
'weight' => '8', 'weight' => '-5',
'children' => array( 'children' => array(
0 => 'field_farm_log_owner', 0 => 'field_farm_log_owner',
), ),
@ -110,7 +110,7 @@ function farm_log_observation_field_group_info() {
$field_group->parent_name = 'group_farm_general'; $field_group->parent_name = 'group_farm_general';
$field_group->data = array( $field_group->data = array(
'label' => 'Category', 'label' => 'Category',
'weight' => '7', 'weight' => '-6',
'children' => array( 'children' => array(
0 => 'field_farm_log_category', 0 => 'field_farm_log_category',
), ),
@ -169,10 +169,11 @@ function farm_log_observation_field_group_info() {
'weight' => '6', 'weight' => '6',
'children' => array( 'children' => array(
0 => 'field_farm_notes', 0 => 'field_farm_notes',
1 => 'name', 1 => 'field_farm_flags',
2 => 'timestamp', 2 => 'name',
3 => 'group_farm_assignment', 3 => 'timestamp',
4 => 'group_farm_category', 4 => 'group_farm_assignment',
5 => 'group_farm_category',
), ),
'format_type' => 'field_group_easy_responsive_tabs_nav_item', 'format_type' => 'field_group_easy_responsive_tabs_nav_item',
'format_settings' => array( 'format_settings' => array(
@ -196,7 +197,7 @@ function farm_log_observation_field_group_info() {
$field_group->parent_name = 'group_farm_location'; $field_group->parent_name = 'group_farm_location';
$field_group->data = array( $field_group->data = array(
'label' => 'Geometry', 'label' => 'Geometry',
'weight' => '8', 'weight' => '9',
'children' => array( 'children' => array(
0 => 'field_farm_geofield', 0 => 'field_farm_geofield',
), ),

View File

@ -14,6 +14,7 @@ dependencies[] = farm_area
dependencies[] = farm_asset dependencies[] = farm_asset
dependencies[] = farm_asset_views dependencies[] = farm_asset_views
dependencies[] = farm_fields dependencies[] = farm_fields
dependencies[] = farm_flags
dependencies[] = farm_group dependencies[] = farm_group
dependencies[] = farm_inventory dependencies[] = farm_inventory
dependencies[] = farm_map dependencies[] = farm_map
@ -27,6 +28,7 @@ dependencies[] = file
dependencies[] = geofield dependencies[] = geofield
dependencies[] = geophp dependencies[] = geophp
dependencies[] = image dependencies[] = image
dependencies[] = list
dependencies[] = log dependencies[] = log
dependencies[] = multiupload_filefield_widget dependencies[] = multiupload_filefield_widget
dependencies[] = multiupload_imagefield_widget dependencies[] = multiupload_imagefield_widget
@ -53,6 +55,7 @@ features[field_group][] = group_farm_tabs|log|farm_observation|form
features[field_instance][] = log-farm_observation-field_farm_area features[field_instance][] = log-farm_observation-field_farm_area
features[field_instance][] = log-farm_observation-field_farm_asset features[field_instance][] = log-farm_observation-field_farm_asset
features[field_instance][] = log-farm_observation-field_farm_files features[field_instance][] = log-farm_observation-field_farm_files
features[field_instance][] = log-farm_observation-field_farm_flags
features[field_instance][] = log-farm_observation-field_farm_geofield 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_images
features[field_instance][] = log-farm_observation-field_farm_inventory features[field_instance][] = log-farm_observation-field_farm_inventory

View File

@ -81,7 +81,7 @@ function farm_log_sale_field_default_field_instances() {
'size' => 60, 'size' => 60,
), ),
'type' => 'text_textfield', 'type' => 'text_textfield',
'weight' => 3, 'weight' => -4,
), ),
); );
@ -96,7 +96,7 @@ function farm_log_sale_field_default_field_instances() {
'module' => 'file', 'module' => 'file',
'settings' => array(), 'settings' => array(),
'type' => 'file_table', 'type' => 'file_table',
'weight' => 13, 'weight' => 14,
), ),
), ),
'entity_type' => 'log', 'entity_type' => 'log',
@ -121,6 +121,37 @@ function farm_log_sale_field_default_field_instances() {
), ),
); );
// Exported field_instance: 'log-farm_sale-field_farm_flags'.
$field_instances['log-farm_sale-field_farm_flags'] = array(
'bundle' => 'farm_sale',
'default_value' => NULL,
'deleted' => 0,
'description' => 'Add flags to this log to enable better sorting and filtering of records.',
'display' => array(
'default' => array(
'label' => 'inline',
'module' => 'list',
'settings' => array(),
'type' => 'list_default',
'weight' => 10,
),
),
'entity_type' => 'log',
'field_name' => 'field_farm_flags',
'label' => 'Flags',
'required' => 0,
'settings' => array(
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'options',
'settings' => array(),
'type' => 'options_buttons',
'weight' => 4,
),
);
// Exported field_instance: 'log-farm_sale-field_farm_images'. // Exported field_instance: 'log-farm_sale-field_farm_images'.
$field_instances['log-farm_sale-field_farm_images'] = array( $field_instances['log-farm_sale-field_farm_images'] = array(
'bundle' => 'farm_sale', 'bundle' => 'farm_sale',
@ -141,7 +172,7 @@ function farm_log_sale_field_default_field_instances() {
'colorbox_node_style_first' => 'large', 'colorbox_node_style_first' => 'large',
), ),
'type' => 'colorbox', 'type' => 'colorbox',
'weight' => 12, 'weight' => 13,
), ),
), ),
'entity_type' => 'log', 'entity_type' => 'log',
@ -234,7 +265,7 @@ function farm_log_sale_field_default_field_instances() {
'size' => 60, 'size' => 60,
), ),
'type' => 'text_textfield', 'type' => 'text_textfield',
'weight' => 4, 'weight' => -3,
), ),
); );
@ -250,7 +281,7 @@ function farm_log_sale_field_default_field_instances() {
'module' => 'taxonomy', 'module' => 'taxonomy',
'settings' => array(), 'settings' => array(),
'type' => 'taxonomy_term_reference_plain', 'type' => 'taxonomy_term_reference_plain',
'weight' => 10, 'weight' => 11,
), ),
), ),
'entity_type' => 'log', 'entity_type' => 'log',
@ -284,7 +315,7 @@ function farm_log_sale_field_default_field_instances() {
'link' => FALSE, 'link' => FALSE,
), ),
'type' => 'entityreference_label', 'type' => 'entityreference_label',
'weight' => 11, 'weight' => 12,
), ),
), ),
'entity_type' => 'log', 'entity_type' => 'log',
@ -333,7 +364,7 @@ function farm_log_sale_field_default_field_instances() {
'size' => 60, 'size' => 60,
), ),
'type' => 'text_textfield', 'type' => 'text_textfield',
'weight' => 5, 'weight' => -2,
), ),
); );
@ -367,7 +398,7 @@ function farm_log_sale_field_default_field_instances() {
'rows' => 5, 'rows' => 5,
), ),
'type' => 'text_textarea', 'type' => 'text_textarea',
'weight' => 10, 'weight' => 3,
), ),
); );
@ -401,7 +432,7 @@ function farm_log_sale_field_default_field_instances() {
'size' => 60, 'size' => 60,
), ),
'type' => 'taxonomy_autocomplete', 'type' => 'taxonomy_autocomplete',
'weight' => 7, 'weight' => 0,
), ),
); );
@ -443,7 +474,7 @@ function farm_log_sale_field_default_field_instances() {
'precision' => 0, 'precision' => 0,
), ),
'type' => 'fraction_decimal', 'type' => 'fraction_decimal',
'weight' => 6, 'weight' => -1,
), ),
); );
@ -485,7 +516,7 @@ function farm_log_sale_field_default_field_instances() {
'precision' => 0, 'precision' => 0,
), ),
'type' => 'fraction_decimal', 'type' => 'fraction_decimal',
'weight' => 9, 'weight' => 2,
), ),
); );
@ -527,16 +558,18 @@ function farm_log_sale_field_default_field_instances() {
'precision' => 0, 'precision' => 0,
), ),
'type' => 'fraction_decimal', 'type' => 'fraction_decimal',
'weight' => 8, 'weight' => 1,
), ),
); );
// Translatables // Translatables
// Included for use with string extractors like potx. // Included for use with string extractors like potx.
t('Add flags to this log to enable better sorting and filtering of records.');
t('Assets'); t('Assets');
t('Assigned to'); t('Assigned to');
t('Customer'); t('Customer');
t('Files'); t('Files');
t('Flags');
t('How many were sold?'); t('How many were sold?');
t('If this sale has a lot number associated with it, enter it here.'); t('If this sale has a lot number associated with it, enter it here.');
t('Inventory adjustments'); t('Inventory adjustments');

View File

@ -47,7 +47,7 @@ function farm_log_sale_field_group_info() {
$field_group->parent_name = 'group_farm_general'; $field_group->parent_name = 'group_farm_general';
$field_group->data = array( $field_group->data = array(
'label' => 'Assignment', 'label' => 'Assignment',
'weight' => '12', 'weight' => '6',
'children' => array( 'children' => array(
0 => 'field_farm_log_owner', 0 => 'field_farm_log_owner',
), ),
@ -104,7 +104,7 @@ function farm_log_sale_field_group_info() {
$field_group->parent_name = 'group_farm_general'; $field_group->parent_name = 'group_farm_general';
$field_group->data = array( $field_group->data = array(
'label' => 'Category', 'label' => 'Category',
'weight' => '11', 'weight' => '5',
'children' => array( 'children' => array(
0 => 'field_farm_log_category', 0 => 'field_farm_log_category',
), ),
@ -143,9 +143,10 @@ function farm_log_sale_field_group_info() {
5 => 'field_farm_invoice_number', 5 => 'field_farm_invoice_number',
6 => 'field_farm_quantity_value', 6 => 'field_farm_quantity_value',
7 => 'field_farm_quantity_units', 7 => 'field_farm_quantity_units',
8 => 'timestamp', 8 => 'field_farm_flags',
9 => 'group_farm_category', 9 => 'timestamp',
10 => 'group_farm_assignment', 10 => 'group_farm_category',
11 => 'group_farm_assignment',
), ),
'format_type' => 'field_group_easy_responsive_tabs_nav_item', 'format_type' => 'field_group_easy_responsive_tabs_nav_item',
'format_settings' => array( 'format_settings' => array(
@ -201,8 +202,7 @@ function farm_log_sale_field_group_info() {
0 => 'group_farm_general', 0 => 'group_farm_general',
1 => 'group_farm_assets', 1 => 'group_farm_assets',
2 => 'group_farm_attachments', 2 => 'group_farm_attachments',
3 => 'group_farm_references', 3 => 'group_farm_inventory',
4 => 'group_farm_inventory',
), ),
'format_type' => 'field_group_easy_responsive_tabs_nav', 'format_type' => 'field_group_easy_responsive_tabs_nav',
'format_settings' => array( 'format_settings' => array(

View File

@ -10,6 +10,7 @@ dependencies[] = entityreference_view_widget
dependencies[] = farm_asset dependencies[] = farm_asset
dependencies[] = farm_asset_views dependencies[] = farm_asset_views
dependencies[] = farm_fields dependencies[] = farm_fields
dependencies[] = farm_flags
dependencies[] = farm_inventory dependencies[] = farm_inventory
dependencies[] = farm_quantity dependencies[] = farm_quantity
dependencies[] = features dependencies[] = features
@ -18,6 +19,7 @@ dependencies[] = field_group
dependencies[] = field_group_easy_responsive_tabs dependencies[] = field_group_easy_responsive_tabs
dependencies[] = file dependencies[] = file
dependencies[] = fraction dependencies[] = fraction
dependencies[] = list
dependencies[] = log dependencies[] = log
dependencies[] = multiupload_filefield_widget dependencies[] = multiupload_filefield_widget
dependencies[] = multiupload_imagefield_widget dependencies[] = multiupload_imagefield_widget
@ -43,6 +45,7 @@ features[field_group][] = group_farm_tabs|log|farm_sale|form
features[field_instance][] = log-farm_sale-field_farm_asset features[field_instance][] = log-farm_sale-field_farm_asset
features[field_instance][] = log-farm_sale-field_farm_customer features[field_instance][] = log-farm_sale-field_farm_customer
features[field_instance][] = log-farm_sale-field_farm_files features[field_instance][] = log-farm_sale-field_farm_files
features[field_instance][] = log-farm_sale-field_farm_flags
features[field_instance][] = log-farm_sale-field_farm_images features[field_instance][] = log-farm_sale-field_farm_images
features[field_instance][] = log-farm_sale-field_farm_inventory features[field_instance][] = log-farm_sale-field_farm_inventory
features[field_instance][] = log-farm_sale-field_farm_invoice_number features[field_instance][] = log-farm_sale-field_farm_invoice_number

View File

@ -22,7 +22,7 @@ function farm_sensor_field_default_field_instances() {
'module' => 'text', 'module' => 'text',
'settings' => array(), 'settings' => array(),
'type' => 'text_default', 'type' => 'text_default',
'weight' => 0, 'weight' => 1,
), ),
), ),
'entity_type' => 'farm_asset', 'entity_type' => 'farm_asset',
@ -40,7 +40,7 @@ function farm_sensor_field_default_field_instances() {
'rows' => 5, 'rows' => 5,
), ),
'type' => 'text_textarea', 'type' => 'text_textarea',
'weight' => 1, 'weight' => -9,
), ),
); );
@ -55,7 +55,7 @@ function farm_sensor_field_default_field_instances() {
'module' => 'file', 'module' => 'file',
'settings' => array(), 'settings' => array(),
'type' => 'file_table', 'type' => 'file_table',
'weight' => 2, 'weight' => 3,
), ),
), ),
'entity_type' => 'farm_asset', 'entity_type' => 'farm_asset',
@ -80,6 +80,37 @@ function farm_sensor_field_default_field_instances() {
), ),
); );
// Exported field_instance: 'farm_asset-sensor-field_farm_flags'.
$field_instances['farm_asset-sensor-field_farm_flags'] = array(
'bundle' => 'sensor',
'default_value' => NULL,
'deleted' => 0,
'description' => 'Add flags to this asset to enable better sorting and filtering of records.',
'display' => array(
'default' => array(
'label' => 'inline',
'module' => 'list',
'settings' => array(),
'type' => 'list_default',
'weight' => 0,
),
),
'entity_type' => 'farm_asset',
'field_name' => 'field_farm_flags',
'label' => 'Flags',
'required' => 0,
'settings' => array(
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'options',
'settings' => array(),
'type' => 'options_buttons',
'weight' => -8,
),
);
// Exported field_instance: 'farm_asset-sensor-field_farm_images'. // Exported field_instance: 'farm_asset-sensor-field_farm_images'.
$field_instances['farm_asset-sensor-field_farm_images'] = array( $field_instances['farm_asset-sensor-field_farm_images'] = array(
'bundle' => 'sensor', 'bundle' => 'sensor',
@ -101,7 +132,7 @@ function farm_sensor_field_default_field_instances() {
'colorbox_node_style_first' => 'large', 'colorbox_node_style_first' => 'large',
), ),
'type' => 'colorbox', 'type' => 'colorbox',
'weight' => 1, 'weight' => 2,
), ),
), ),
'entity_type' => 'farm_asset', 'entity_type' => 'farm_asset',
@ -133,8 +164,10 @@ function farm_sensor_field_default_field_instances() {
// Translatables // Translatables
// Included for use with string extractors like potx. // Included for use with string extractors like potx.
t('Add flags to this asset to enable better sorting and filtering of records.');
t('Description'); t('Description');
t('Files'); t('Files');
t('Flags');
t('Photos'); t('Photos');
return $field_instances; return $field_instances;

View File

@ -52,7 +52,8 @@ function farm_sensor_field_group_info() {
'weight' => '1', 'weight' => '1',
'children' => array( 'children' => array(
0 => 'field_farm_description', 0 => 'field_farm_description',
1 => 'name', 1 => 'field_farm_flags',
2 => 'name',
), ),
'format_type' => 'field_group_easy_responsive_tabs_nav_item', 'format_type' => 'field_group_easy_responsive_tabs_nav_item',
'format_settings' => array( 'format_settings' => array(

View File

@ -7,6 +7,7 @@ dependencies[] = ctools
dependencies[] = entity dependencies[] = entity
dependencies[] = farm_asset dependencies[] = farm_asset
dependencies[] = farm_fields dependencies[] = farm_fields
dependencies[] = farm_flags
dependencies[] = farm_group dependencies[] = farm_group
dependencies[] = farm_movement dependencies[] = farm_movement
dependencies[] = features dependencies[] = features
@ -14,8 +15,10 @@ dependencies[] = field_group
dependencies[] = field_group_easy_responsive_tabs dependencies[] = field_group_easy_responsive_tabs
dependencies[] = file dependencies[] = file
dependencies[] = image dependencies[] = image
dependencies[] = list
dependencies[] = multiupload_filefield_widget dependencies[] = multiupload_filefield_widget
dependencies[] = multiupload_imagefield_widget dependencies[] = multiupload_imagefield_widget
dependencies[] = options
dependencies[] = pathauto dependencies[] = pathauto
dependencies[] = strongarm dependencies[] = strongarm
dependencies[] = text dependencies[] = text
@ -32,6 +35,7 @@ features[field_group][] = group_farm_general|farm_asset|sensor|form
features[field_group][] = group_farm_tabs|farm_asset|sensor|form features[field_group][] = group_farm_tabs|farm_asset|sensor|form
features[field_instance][] = farm_asset-sensor-field_farm_description features[field_instance][] = farm_asset-sensor-field_farm_description
features[field_instance][] = farm_asset-sensor-field_farm_files features[field_instance][] = farm_asset-sensor-field_farm_files
features[field_instance][] = farm_asset-sensor-field_farm_flags
features[field_instance][] = farm_asset-sensor-field_farm_images features[field_instance][] = farm_asset-sensor-field_farm_images
features[variable][] = pathauto_farm_asset_sensor_pattern features[variable][] = pathauto_farm_asset_sensor_pattern
features[views_view][] = farm_sensors features[views_view][] = farm_sensors

View File

@ -22,7 +22,7 @@ function farm_soil_compost_field_default_field_instances() {
'module' => 'text', 'module' => 'text',
'settings' => array(), 'settings' => array(),
'type' => 'text_default', 'type' => 'text_default',
'weight' => 1, 'weight' => 2,
), ),
), ),
'entity_type' => 'farm_asset', 'entity_type' => 'farm_asset',
@ -40,7 +40,7 @@ function farm_soil_compost_field_default_field_instances() {
'rows' => 5, 'rows' => 5,
), ),
'type' => 'text_textarea', 'type' => 'text_textarea',
'weight' => 1, 'weight' => -9,
), ),
); );
@ -55,7 +55,7 @@ function farm_soil_compost_field_default_field_instances() {
'module' => 'file', 'module' => 'file',
'settings' => array(), 'settings' => array(),
'type' => 'file_table', 'type' => 'file_table',
'weight' => 3, 'weight' => 4,
), ),
), ),
'entity_type' => 'farm_asset', 'entity_type' => 'farm_asset',
@ -80,6 +80,37 @@ function farm_soil_compost_field_default_field_instances() {
), ),
); );
// Exported field_instance: 'farm_asset-compost-field_farm_flags'.
$field_instances['farm_asset-compost-field_farm_flags'] = array(
'bundle' => 'compost',
'default_value' => NULL,
'deleted' => 0,
'description' => 'Add flags to this asset to enable better sorting and filtering of records.',
'display' => array(
'default' => array(
'label' => 'inline',
'module' => 'list',
'settings' => array(),
'type' => 'list_default',
'weight' => 1,
),
),
'entity_type' => 'farm_asset',
'field_name' => 'field_farm_flags',
'label' => 'Flags',
'required' => 0,
'settings' => array(
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'options',
'settings' => array(),
'type' => 'options_buttons',
'weight' => -8,
),
);
// Exported field_instance: 'farm_asset-compost-field_farm_images'. // Exported field_instance: 'farm_asset-compost-field_farm_images'.
$field_instances['farm_asset-compost-field_farm_images'] = array( $field_instances['farm_asset-compost-field_farm_images'] = array(
'bundle' => 'compost', 'bundle' => 'compost',
@ -100,7 +131,7 @@ function farm_soil_compost_field_default_field_instances() {
'colorbox_node_style_first' => 'large', 'colorbox_node_style_first' => 'large',
), ),
'type' => 'colorbox', 'type' => 'colorbox',
'weight' => 2, 'weight' => 3,
), ),
), ),
'entity_type' => 'farm_asset', 'entity_type' => 'farm_asset',
@ -173,8 +204,10 @@ function farm_soil_compost_field_default_field_instances() {
// Translatables // Translatables
// Included for use with string extractors like potx. // Included for use with string extractors like potx.
t('Add flags to this asset to enable better sorting and filtering of records.');
t('Description'); t('Description');
t('Files'); t('Files');
t('Flags');
t('If this compost asset was created from other compost assets, use this field to link it to them as a child.'); t('If this compost asset was created from other compost assets, use this field to link it to them as a child.');
t('Parent(s)'); t('Parent(s)');
t('Photos'); t('Photos');

View File

@ -52,7 +52,8 @@ function farm_soil_compost_field_group_info() {
'weight' => '1', 'weight' => '1',
'children' => array( 'children' => array(
0 => 'field_farm_description', 0 => 'field_farm_description',
1 => 'name', 1 => 'field_farm_flags',
2 => 'name',
), ),
'format_type' => 'field_group_easy_responsive_tabs_nav_item', 'format_type' => 'field_group_easy_responsive_tabs_nav_item',
'format_settings' => array( 'format_settings' => array(

View File

@ -11,13 +11,16 @@ dependencies[] = farm_asset
dependencies[] = farm_asset_children dependencies[] = farm_asset_children
dependencies[] = farm_asset_views dependencies[] = farm_asset_views
dependencies[] = farm_fields dependencies[] = farm_fields
dependencies[] = farm_flags
dependencies[] = farm_group dependencies[] = farm_group
dependencies[] = features dependencies[] = features
dependencies[] = field_group dependencies[] = field_group
dependencies[] = field_group_easy_responsive_tabs dependencies[] = field_group_easy_responsive_tabs
dependencies[] = file dependencies[] = file
dependencies[] = image dependencies[] = image
dependencies[] = list
dependencies[] = multiupload_filefield_widget dependencies[] = multiupload_filefield_widget
dependencies[] = options
dependencies[] = text dependencies[] = text
dependencies[] = views dependencies[] = views
dependencies[] = views_data_export dependencies[] = views_data_export
@ -31,6 +34,7 @@ features[field_group][] = group_farm_lineage|farm_asset|compost|form
features[field_group][] = group_farm_tabs|farm_asset|compost|form features[field_group][] = group_farm_tabs|farm_asset|compost|form
features[field_instance][] = farm_asset-compost-field_farm_description features[field_instance][] = farm_asset-compost-field_farm_description
features[field_instance][] = farm_asset-compost-field_farm_files features[field_instance][] = farm_asset-compost-field_farm_files
features[field_instance][] = farm_asset-compost-field_farm_flags
features[field_instance][] = farm_asset-compost-field_farm_images features[field_instance][] = farm_asset-compost-field_farm_images
features[field_instance][] = farm_asset-compost-field_farm_parent features[field_instance][] = farm_asset-compost-field_farm_parent
features[views_view][] = farm_compost features[views_view][] = farm_compost

View File

@ -53,7 +53,7 @@ function farm_soil_test_field_default_field_instances() {
'module' => 'file', 'module' => 'file',
'settings' => array(), 'settings' => array(),
'type' => 'file_table', 'type' => 'file_table',
'weight' => 8, 'weight' => 9,
), ),
), ),
'entity_type' => 'log', 'entity_type' => 'log',
@ -78,6 +78,37 @@ function farm_soil_test_field_default_field_instances() {
), ),
); );
// Exported field_instance: 'log-farm_soil_test-field_farm_flags'.
$field_instances['log-farm_soil_test-field_farm_flags'] = array(
'bundle' => 'farm_soil_test',
'default_value' => NULL,
'deleted' => 0,
'description' => 'Add flags to this log to enable better sorting and filtering of records.',
'display' => array(
'default' => array(
'label' => 'inline',
'module' => 'list',
'settings' => array(),
'type' => 'list_default',
'weight' => 5,
),
),
'entity_type' => 'log',
'field_name' => 'field_farm_flags',
'label' => 'Flags',
'required' => 0,
'settings' => array(
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'options',
'settings' => array(),
'type' => 'options_buttons',
'weight' => -6,
),
);
// Exported field_instance: 'log-farm_soil_test-field_farm_geofield'. // Exported field_instance: 'log-farm_soil_test-field_farm_geofield'.
$field_instances['log-farm_soil_test-field_farm_geofield'] = array( $field_instances['log-farm_soil_test-field_farm_geofield'] = array(
'bundle' => 'farm_soil_test', 'bundle' => 'farm_soil_test',
@ -164,7 +195,7 @@ function farm_soil_test_field_default_field_instances() {
'colorbox_node_style_first' => 'large', 'colorbox_node_style_first' => 'large',
), ),
'type' => 'colorbox', 'type' => 'colorbox',
'weight' => 7, 'weight' => 8,
), ),
), ),
'entity_type' => 'log', 'entity_type' => 'log',
@ -206,7 +237,7 @@ function farm_soil_test_field_default_field_instances() {
'module' => 'taxonomy', 'module' => 'taxonomy',
'settings' => array(), 'settings' => array(),
'type' => 'taxonomy_term_reference_link', 'type' => 'taxonomy_term_reference_link',
'weight' => 5, 'weight' => 6,
), ),
), ),
'entity_type' => 'log', 'entity_type' => 'log',
@ -240,7 +271,7 @@ function farm_soil_test_field_default_field_instances() {
'link' => FALSE, 'link' => FALSE,
), ),
'type' => 'entityreference_label', 'type' => 'entityreference_label',
'weight' => 6, 'weight' => 7,
), ),
), ),
'entity_type' => 'log', 'entity_type' => 'log',
@ -289,7 +320,7 @@ function farm_soil_test_field_default_field_instances() {
'rows' => 5, 'rows' => 5,
), ),
'type' => 'text_textarea', 'type' => 'text_textarea',
'weight' => 2, 'weight' => -7,
), ),
); );
@ -323,7 +354,7 @@ function farm_soil_test_field_default_field_instances() {
'size' => 60, 'size' => 60,
), ),
'type' => 'text_textfield', 'type' => 'text_textfield',
'weight' => 1, 'weight' => -8,
), ),
); );
@ -363,9 +394,11 @@ function farm_soil_test_field_default_field_instances() {
// Translatables // Translatables
// Included for use with string extractors like potx. // Included for use with string extractors like potx.
t('Add flags to this log to enable better sorting and filtering of records.');
t('Areas'); t('Areas');
t('Assigned to'); t('Assigned to');
t('Files'); t('Files');
t('Flags');
t('Laboratory'); 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('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('Log category'); t('Log category');

View File

@ -21,7 +21,7 @@ function farm_soil_test_field_group_info() {
$field_group->parent_name = 'group_farm_general'; $field_group->parent_name = 'group_farm_general';
$field_group->data = array( $field_group->data = array(
'label' => 'Assignment', 'label' => 'Assignment',
'weight' => '4', 'weight' => '-4',
'children' => array( 'children' => array(
0 => 'field_farm_log_owner', 0 => 'field_farm_log_owner',
), ),
@ -50,7 +50,7 @@ function farm_soil_test_field_group_info() {
$field_group->parent_name = 'group_farm_general'; $field_group->parent_name = 'group_farm_general';
$field_group->data = array( $field_group->data = array(
'label' => 'Category', 'label' => 'Category',
'weight' => '3', 'weight' => '-5',
'children' => array( 'children' => array(
0 => 'field_farm_log_category', 0 => 'field_farm_log_category',
), ),
@ -111,10 +111,11 @@ function farm_soil_test_field_group_info() {
'children' => array( 'children' => array(
0 => 'field_farm_notes', 0 => 'field_farm_notes',
1 => 'field_farm_soil_lab', 1 => 'field_farm_soil_lab',
2 => 'name', 2 => 'field_farm_flags',
3 => 'timestamp', 3 => 'name',
4 => 'group_farm_category', 4 => 'timestamp',
5 => 'group_farm_assignment', 5 => 'group_farm_category',
6 => 'group_farm_assignment',
), ),
'format_type' => 'field_group_easy_responsive_tabs_nav_item', 'format_type' => 'field_group_easy_responsive_tabs_nav_item',
'format_settings' => array( 'format_settings' => array(
@ -171,8 +172,7 @@ function farm_soil_test_field_group_info() {
'children' => array( 'children' => array(
0 => 'group_farm_files', 0 => 'group_farm_files',
1 => 'group_farm_general', 1 => 'group_farm_general',
2 => 'group_farm_soil', 2 => 'group_farm_location',
3 => 'group_farm_location',
), ),
'format_type' => 'field_group_easy_responsive_tabs_nav', 'format_type' => 'field_group_easy_responsive_tabs_nav',
'format_settings' => array( 'format_settings' => array(

View File

@ -9,6 +9,7 @@ dependencies[] = entity
dependencies[] = entityreference dependencies[] = entityreference
dependencies[] = farm_area dependencies[] = farm_area
dependencies[] = farm_fields dependencies[] = farm_fields
dependencies[] = farm_flags
dependencies[] = farm_map dependencies[] = farm_map
dependencies[] = farm_soil dependencies[] = farm_soil
dependencies[] = features dependencies[] = features
@ -16,6 +17,7 @@ dependencies[] = field_group
dependencies[] = field_group_easy_responsive_tabs dependencies[] = field_group_easy_responsive_tabs
dependencies[] = file dependencies[] = file
dependencies[] = image dependencies[] = image
dependencies[] = list
dependencies[] = log dependencies[] = log
dependencies[] = multiupload_filefield_widget dependencies[] = multiupload_filefield_widget
dependencies[] = multiupload_imagefield_widget dependencies[] = multiupload_imagefield_widget
@ -38,6 +40,7 @@ features[field_group][] = group_farm_location|log|farm_soil_test|form
features[field_group][] = group_farm_tabs|log|farm_soil_test|form features[field_group][] = group_farm_tabs|log|farm_soil_test|form
features[field_instance][] = log-farm_soil_test-field_farm_area 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_files
features[field_instance][] = log-farm_soil_test-field_farm_flags
features[field_instance][] = log-farm_soil_test-field_farm_geofield features[field_instance][] = log-farm_soil_test-field_farm_geofield
features[field_instance][] = log-farm_soil_test-field_farm_images features[field_instance][] = log-farm_soil_test-field_farm_images
features[field_instance][] = log-farm_soil_test-field_farm_log_category features[field_instance][] = log-farm_soil_test-field_farm_log_category

View File

@ -52,7 +52,7 @@ function farm_water_test_field_default_field_instances() {
'module' => 'file', 'module' => 'file',
'settings' => array(), 'settings' => array(),
'type' => 'file_table', 'type' => 'file_table',
'weight' => 7, 'weight' => 8,
), ),
), ),
'entity_type' => 'log', 'entity_type' => 'log',
@ -77,6 +77,37 @@ function farm_water_test_field_default_field_instances() {
), ),
); );
// Exported field_instance: 'log-farm_water_test-field_farm_flags'.
$field_instances['log-farm_water_test-field_farm_flags'] = array(
'bundle' => 'farm_water_test',
'default_value' => NULL,
'deleted' => 0,
'description' => 'Add flags to this log to enable better sorting and filtering of records.',
'display' => array(
'default' => array(
'label' => 'inline',
'module' => 'list',
'settings' => array(),
'type' => 'list_default',
'weight' => 4,
),
),
'entity_type' => 'log',
'field_name' => 'field_farm_flags',
'label' => 'Flags',
'required' => 0,
'settings' => array(
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'options',
'settings' => array(),
'type' => 'options_buttons',
'weight' => -6,
),
);
// Exported field_instance: 'log-farm_water_test-field_farm_geofield'. // Exported field_instance: 'log-farm_water_test-field_farm_geofield'.
$field_instances['log-farm_water_test-field_farm_geofield'] = array( $field_instances['log-farm_water_test-field_farm_geofield'] = array(
'bundle' => 'farm_water_test', 'bundle' => 'farm_water_test',
@ -162,7 +193,7 @@ function farm_water_test_field_default_field_instances() {
'colorbox_node_style_first' => 'large', 'colorbox_node_style_first' => 'large',
), ),
'type' => 'colorbox', 'type' => 'colorbox',
'weight' => 6, 'weight' => 7,
), ),
), ),
'entity_type' => 'log', 'entity_type' => 'log',
@ -204,7 +235,7 @@ function farm_water_test_field_default_field_instances() {
'module' => 'taxonomy', 'module' => 'taxonomy',
'settings' => array(), 'settings' => array(),
'type' => 'taxonomy_term_reference_link', 'type' => 'taxonomy_term_reference_link',
'weight' => 4, 'weight' => 5,
), ),
), ),
'entity_type' => 'log', 'entity_type' => 'log',
@ -238,7 +269,7 @@ function farm_water_test_field_default_field_instances() {
'link' => FALSE, 'link' => FALSE,
), ),
'type' => 'entityreference_label', 'type' => 'entityreference_label',
'weight' => 5, 'weight' => 6,
), ),
), ),
'entity_type' => 'log', 'entity_type' => 'log',
@ -287,7 +318,7 @@ function farm_water_test_field_default_field_instances() {
'rows' => 5, 'rows' => 5,
), ),
'type' => 'text_textarea', 'type' => 'text_textarea',
'weight' => 17, 'weight' => -7,
), ),
); );
@ -321,15 +352,17 @@ function farm_water_test_field_default_field_instances() {
'size' => 60, 'size' => 60,
), ),
'type' => 'text_textfield', 'type' => 'text_textfield',
'weight' => 16, 'weight' => -8,
), ),
); );
// Translatables // Translatables
// Included for use with string extractors like potx. // Included for use with string extractors like potx.
t('Add flags to this log to enable better sorting and filtering of records.');
t('Areas'); t('Areas');
t('Assigned to'); t('Assigned to');
t('Files'); t('Files');
t('Flags');
t('Laboratory'); t('Laboratory');
t('Log category'); t('Log category');
t('Notes'); t('Notes');

View File

@ -21,7 +21,7 @@ function farm_water_test_field_group_info() {
$field_group->parent_name = 'group_farm_general'; $field_group->parent_name = 'group_farm_general';
$field_group->data = array( $field_group->data = array(
'label' => 'Assignment', 'label' => 'Assignment',
'weight' => '19', 'weight' => '-4',
'children' => array( 'children' => array(
0 => 'field_farm_log_owner', 0 => 'field_farm_log_owner',
), ),
@ -50,7 +50,7 @@ function farm_water_test_field_group_info() {
$field_group->parent_name = 'group_farm_general'; $field_group->parent_name = 'group_farm_general';
$field_group->data = array( $field_group->data = array(
'label' => 'Category', 'label' => 'Category',
'weight' => '18', 'weight' => '-5',
'children' => array( 'children' => array(
0 => 'field_farm_log_category', 0 => 'field_farm_log_category',
), ),
@ -111,10 +111,11 @@ function farm_water_test_field_group_info() {
'children' => array( 'children' => array(
0 => 'field_farm_notes', 0 => 'field_farm_notes',
1 => 'field_farm_water_lab', 1 => 'field_farm_water_lab',
2 => 'name', 2 => 'field_farm_flags',
3 => 'timestamp', 3 => 'name',
4 => 'group_farm_category', 4 => 'timestamp',
5 => 'group_farm_assignment', 5 => 'group_farm_category',
6 => 'group_farm_assignment',
), ),
'format_type' => 'field_group_easy_responsive_tabs_nav_item', 'format_type' => 'field_group_easy_responsive_tabs_nav_item',
'format_settings' => array( 'format_settings' => array(
@ -170,8 +171,7 @@ function farm_water_test_field_group_info() {
'children' => array( 'children' => array(
0 => 'group_farm_files', 0 => 'group_farm_files',
1 => 'group_farm_general', 1 => 'group_farm_general',
2 => 'group_farm_water', 2 => 'group_farm_location',
3 => 'group_farm_location',
), ),
'format_type' => 'field_group_easy_responsive_tabs_nav', 'format_type' => 'field_group_easy_responsive_tabs_nav',
'format_settings' => array( 'format_settings' => array(

View File

@ -8,6 +8,7 @@ dependencies[] = entity
dependencies[] = entityreference dependencies[] = entityreference
dependencies[] = farm_area dependencies[] = farm_area
dependencies[] = farm_fields dependencies[] = farm_fields
dependencies[] = farm_flags
dependencies[] = farm_map dependencies[] = farm_map
dependencies[] = farm_water dependencies[] = farm_water
dependencies[] = features dependencies[] = features
@ -16,6 +17,7 @@ dependencies[] = field_group_easy_responsive_tabs
dependencies[] = file dependencies[] = file
dependencies[] = geofield dependencies[] = geofield
dependencies[] = image dependencies[] = image
dependencies[] = list
dependencies[] = log dependencies[] = log
dependencies[] = multiupload_filefield_widget dependencies[] = multiupload_filefield_widget
dependencies[] = multiupload_imagefield_widget dependencies[] = multiupload_imagefield_widget
@ -37,6 +39,7 @@ features[field_group][] = group_farm_location|log|farm_water_test|form
features[field_group][] = group_farm_tabs|log|farm_water_test|form features[field_group][] = group_farm_tabs|log|farm_water_test|form
features[field_instance][] = log-farm_water_test-field_farm_area features[field_instance][] = log-farm_water_test-field_farm_area
features[field_instance][] = log-farm_water_test-field_farm_files features[field_instance][] = log-farm_water_test-field_farm_files
features[field_instance][] = log-farm_water_test-field_farm_flags
features[field_instance][] = log-farm_water_test-field_farm_geofield features[field_instance][] = log-farm_water_test-field_farm_geofield
features[field_instance][] = log-farm_water_test-field_farm_images features[field_instance][] = log-farm_water_test-field_farm_images
features[field_instance][] = log-farm_water_test-field_farm_log_category features[field_instance][] = log-farm_water_test-field_farm_log_category