Major overhaul of data architecture. Added field collections to represent quantities, planting locations, and harvest lists. Removed unused fields and field groups. Added descriptions to all fields. Lots of cleanup and moving around.
This commit is contained in:
parent
d86a38f73e
commit
f813dd8006
|
@ -10,6 +10,125 @@
|
|||
function farm_log_field_default_fields() {
|
||||
$fields = array();
|
||||
|
||||
// Exported field: 'field_collection_item-field_farm_quantity-field_farm_quantity_units'.
|
||||
$fields['field_collection_item-field_farm_quantity-field_farm_quantity_units'] = array(
|
||||
'field_config' => array(
|
||||
'active' => '1',
|
||||
'cardinality' => '1',
|
||||
'deleted' => '0',
|
||||
'entity_types' => array(),
|
||||
'field_name' => 'field_farm_quantity_units',
|
||||
'foreign keys' => array(
|
||||
'tid' => array(
|
||||
'columns' => array(
|
||||
'tid' => 'tid',
|
||||
),
|
||||
'table' => 'taxonomy_term_data',
|
||||
),
|
||||
),
|
||||
'indexes' => array(
|
||||
'tid' => array(
|
||||
0 => 'tid',
|
||||
),
|
||||
),
|
||||
'locked' => '0',
|
||||
'module' => 'taxonomy',
|
||||
'settings' => array(
|
||||
'allowed_values' => array(
|
||||
0 => array(
|
||||
'vocabulary' => 'farm_quantity_units',
|
||||
'parent' => '0',
|
||||
),
|
||||
),
|
||||
),
|
||||
'translatable' => '0',
|
||||
'type' => 'taxonomy_term_reference',
|
||||
),
|
||||
'field_instance' => array(
|
||||
'bundle' => 'field_farm_quantity',
|
||||
'default_value' => NULL,
|
||||
'deleted' => '0',
|
||||
'description' => '',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'hidden',
|
||||
'module' => 'taxonomy',
|
||||
'settings' => array(),
|
||||
'type' => 'taxonomy_term_reference_plain',
|
||||
'weight' => '1',
|
||||
),
|
||||
),
|
||||
'entity_type' => 'field_collection_item',
|
||||
'field_name' => 'field_farm_quantity_units',
|
||||
'label' => 'Units',
|
||||
'required' => 1,
|
||||
'settings' => array(
|
||||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'active' => 0,
|
||||
'module' => 'taxonomy',
|
||||
'settings' => array(
|
||||
'autocomplete_path' => 'taxonomy/autocomplete',
|
||||
'size' => 60,
|
||||
),
|
||||
'type' => 'taxonomy_autocomplete',
|
||||
'weight' => '1',
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
// Exported field: 'field_collection_item-field_farm_quantity-field_farm_quantity_value'.
|
||||
$fields['field_collection_item-field_farm_quantity-field_farm_quantity_value'] = array(
|
||||
'field_config' => array(
|
||||
'active' => '1',
|
||||
'cardinality' => '1',
|
||||
'deleted' => '0',
|
||||
'entity_types' => array(),
|
||||
'field_name' => 'field_farm_quantity_value',
|
||||
'foreign keys' => array(),
|
||||
'indexes' => array(),
|
||||
'locked' => '0',
|
||||
'module' => 'fraction',
|
||||
'settings' => array(),
|
||||
'translatable' => '0',
|
||||
'type' => 'fraction',
|
||||
),
|
||||
'field_instance' => array(
|
||||
'bundle' => 'field_farm_quantity',
|
||||
'default_value' => NULL,
|
||||
'deleted' => '0',
|
||||
'description' => '',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'hidden',
|
||||
'module' => 'fraction',
|
||||
'settings' => array(
|
||||
'precision' => 2,
|
||||
),
|
||||
'type' => 'fraction_decimal',
|
||||
'weight' => '0',
|
||||
),
|
||||
),
|
||||
'entity_type' => 'field_collection_item',
|
||||
'field_name' => 'field_farm_quantity_value',
|
||||
'label' => 'Value',
|
||||
'required' => 1,
|
||||
'settings' => array(
|
||||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'active' => 1,
|
||||
'module' => 'fraction',
|
||||
'settings' => array(
|
||||
'precision' => '2',
|
||||
),
|
||||
'type' => 'fraction_decimal',
|
||||
'weight' => 0,
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
// Exported field: 'log-farm_issue-field_farm_areas'.
|
||||
$fields['log-farm_issue-field_farm_areas'] = array(
|
||||
'field_config' => array(
|
||||
|
@ -48,14 +167,14 @@ function farm_log_field_default_fields() {
|
|||
'bundle' => 'farm_issue',
|
||||
'default_value' => NULL,
|
||||
'deleted' => '0',
|
||||
'description' => '',
|
||||
'description' => 'Enter a comma-separated list of areas that this an issue for. As you type, you will have the option of selecting from areas that you\'ve entered in the past.',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'inline',
|
||||
'module' => 'taxonomy',
|
||||
'settings' => array(),
|
||||
'type' => 'taxonomy_term_reference_link',
|
||||
'weight' => '2',
|
||||
'weight' => '4',
|
||||
),
|
||||
'token' => array(
|
||||
'label' => 'inline',
|
||||
|
@ -73,17 +192,14 @@ function farm_log_field_default_fields() {
|
|||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'active' => 1,
|
||||
'module' => 'autocomplete_deluxe',
|
||||
'active' => 0,
|
||||
'module' => 'taxonomy',
|
||||
'settings' => array(
|
||||
'autocomplete_deluxe_path' => 'autocomplete_deluxe/taxonomy',
|
||||
'delimiter' => '',
|
||||
'limit' => '10',
|
||||
'min_length' => '0',
|
||||
'size' => '60',
|
||||
'autocomplete_path' => 'taxonomy/autocomplete',
|
||||
'size' => 60,
|
||||
),
|
||||
'type' => 'autocomplete_deluxe_taxonomy',
|
||||
'weight' => '4',
|
||||
'type' => 'taxonomy_autocomplete',
|
||||
'weight' => '36',
|
||||
),
|
||||
),
|
||||
);
|
||||
|
@ -124,16 +240,16 @@ function farm_log_field_default_fields() {
|
|||
),
|
||||
'field_instance' => array(
|
||||
'bundle' => 'farm_issue',
|
||||
'default_value' => array(),
|
||||
'default_value' => NULL,
|
||||
'deleted' => '0',
|
||||
'description' => '',
|
||||
'description' => 'Enter a comma-separated list of crops that this an issue for. As you type, you will have the option of selecting from crops that you\'ve entered in the past.',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'inline',
|
||||
'module' => 'taxonomy',
|
||||
'settings' => array(),
|
||||
'type' => 'taxonomy_term_reference_link',
|
||||
'weight' => '1',
|
||||
'weight' => '3',
|
||||
),
|
||||
'token' => array(
|
||||
'label' => 'inline',
|
||||
|
@ -151,15 +267,14 @@ function farm_log_field_default_fields() {
|
|||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'active' => 1,
|
||||
'module' => 'autocomplete_deluxe',
|
||||
'active' => 0,
|
||||
'module' => 'taxonomy',
|
||||
'settings' => array(
|
||||
'autocomplete_deluxe_path' => 'autocomplete_deluxe/taxonomy',
|
||||
'autocomplete_path' => 'taxonomy/autocomplete',
|
||||
'size' => 60,
|
||||
),
|
||||
'type' => 'autocomplete_deluxe_taxonomy',
|
||||
'weight' => '3',
|
||||
'type' => 'taxonomy_autocomplete',
|
||||
'weight' => '35',
|
||||
),
|
||||
),
|
||||
);
|
||||
|
@ -198,7 +313,7 @@ function farm_log_field_default_fields() {
|
|||
'field_instance' => array(
|
||||
'bundle' => 'farm_issue',
|
||||
'deleted' => '0',
|
||||
'description' => '',
|
||||
'description' => 'Enter the date that this became an issue.',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'inline',
|
||||
|
@ -232,7 +347,7 @@ function farm_log_field_default_fields() {
|
|||
'entity_type' => 'log',
|
||||
'field_name' => 'field_farm_date',
|
||||
'label' => 'Date',
|
||||
'required' => 0,
|
||||
'required' => 1,
|
||||
'settings' => array(
|
||||
'default_value' => 'now',
|
||||
'default_value2' => 'same',
|
||||
|
@ -292,14 +407,14 @@ function farm_log_field_default_fields() {
|
|||
'field_instance' => array(
|
||||
'bundle' => 'farm_issue',
|
||||
'deleted' => '0',
|
||||
'description' => '',
|
||||
'description' => 'Use this field to attach files to this issue record.',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'above',
|
||||
'module' => 'file',
|
||||
'settings' => array(),
|
||||
'type' => 'file_table',
|
||||
'weight' => '9',
|
||||
'weight' => '7',
|
||||
),
|
||||
'token' => array(
|
||||
'label' => 'above',
|
||||
|
@ -351,66 +466,6 @@ function farm_log_field_default_fields() {
|
|||
),
|
||||
);
|
||||
|
||||
// Exported field: 'log-farm_issue-field_farm_hours'.
|
||||
$fields['log-farm_issue-field_farm_hours'] = array(
|
||||
'field_config' => array(
|
||||
'active' => '1',
|
||||
'cardinality' => '1',
|
||||
'deleted' => '0',
|
||||
'entity_types' => array(),
|
||||
'field_name' => 'field_farm_hours',
|
||||
'foreign keys' => array(),
|
||||
'indexes' => array(),
|
||||
'locked' => '0',
|
||||
'module' => 'fraction',
|
||||
'settings' => array(),
|
||||
'translatable' => '0',
|
||||
'type' => 'fraction',
|
||||
),
|
||||
'field_instance' => array(
|
||||
'bundle' => 'farm_issue',
|
||||
'default_value' => NULL,
|
||||
'deleted' => '0',
|
||||
'description' => 'Record how many total hours this task took. If multiple people worked on it, multiply the time spent by the number of workers. Example: if two people worked together for 45 minutes (0.75 hours), the total time would be 1.5 hours (0.75 x 2).',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'inline',
|
||||
'module' => 'fraction',
|
||||
'settings' => array(
|
||||
'precision' => '2',
|
||||
),
|
||||
'type' => 'fraction_decimal',
|
||||
'weight' => '5',
|
||||
),
|
||||
'token' => array(
|
||||
'label' => 'inline',
|
||||
'module' => 'fraction',
|
||||
'settings' => array(
|
||||
'precision' => '2',
|
||||
),
|
||||
'type' => 'fraction_decimal',
|
||||
'weight' => '5',
|
||||
),
|
||||
),
|
||||
'entity_type' => 'log',
|
||||
'field_name' => 'field_farm_hours',
|
||||
'label' => 'Total work hours',
|
||||
'required' => 0,
|
||||
'settings' => array(
|
||||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'active' => 1,
|
||||
'module' => 'fraction',
|
||||
'settings' => array(
|
||||
'precision' => '2',
|
||||
),
|
||||
'type' => 'fraction_decimal',
|
||||
'weight' => '6',
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
// Exported field: 'log-farm_issue-field_farm_images'.
|
||||
$fields['log-farm_issue-field_farm_images'] = array(
|
||||
'field_config' => array(
|
||||
|
@ -444,17 +499,17 @@ function farm_log_field_default_fields() {
|
|||
'field_instance' => array(
|
||||
'bundle' => 'farm_issue',
|
||||
'deleted' => '0',
|
||||
'description' => '',
|
||||
'description' => 'Use this field to attach image files to this issue record.',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'hidden',
|
||||
'label' => 'above',
|
||||
'module' => 'image',
|
||||
'settings' => array(
|
||||
'image_link' => '',
|
||||
'image_style' => 'large',
|
||||
),
|
||||
'type' => 'image',
|
||||
'weight' => '7',
|
||||
'weight' => '6',
|
||||
),
|
||||
'token' => array(
|
||||
'label' => 'hidden',
|
||||
|
@ -514,90 +569,6 @@ function farm_log_field_default_fields() {
|
|||
),
|
||||
);
|
||||
|
||||
// Exported field: 'log-farm_issue-field_farm_issues'.
|
||||
$fields['log-farm_issue-field_farm_issues'] = array(
|
||||
'field_config' => array(
|
||||
'active' => '1',
|
||||
'cardinality' => '-1',
|
||||
'deleted' => '0',
|
||||
'entity_types' => array(),
|
||||
'field_name' => 'field_farm_issues',
|
||||
'foreign keys' => array(
|
||||
'log' => array(
|
||||
'columns' => array(
|
||||
'target_id' => 'id',
|
||||
),
|
||||
'table' => 'log',
|
||||
),
|
||||
),
|
||||
'indexes' => array(
|
||||
'target_id' => array(
|
||||
0 => 'target_id',
|
||||
),
|
||||
),
|
||||
'locked' => '0',
|
||||
'module' => 'entityreference',
|
||||
'settings' => array(
|
||||
'handler' => 'views',
|
||||
'handler_settings' => array(
|
||||
'behaviors' => array(
|
||||
'views-select-list' => array(
|
||||
'status' => 0,
|
||||
),
|
||||
),
|
||||
'view' => array(
|
||||
'args' => array(),
|
||||
'display_name' => 'entityreference_1',
|
||||
'view_name' => 'farm_log_issues',
|
||||
),
|
||||
),
|
||||
'target_type' => 'log',
|
||||
),
|
||||
'translatable' => '0',
|
||||
'type' => 'entityreference',
|
||||
),
|
||||
'field_instance' => array(
|
||||
'bundle' => 'farm_issue',
|
||||
'default_value' => NULL,
|
||||
'deleted' => '0',
|
||||
'description' => 'Optionally, select other issues that are related to this one. This helps to connect data.',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'inline',
|
||||
'module' => 'entityreference',
|
||||
'settings' => array(
|
||||
'link' => 1,
|
||||
),
|
||||
'type' => 'entityreference_label',
|
||||
'weight' => '8',
|
||||
),
|
||||
'token' => array(
|
||||
'label' => 'inline',
|
||||
'module' => 'entityreference',
|
||||
'settings' => array(
|
||||
'link' => 1,
|
||||
),
|
||||
'type' => 'entityreference_label',
|
||||
'weight' => '8',
|
||||
),
|
||||
),
|
||||
'entity_type' => 'log',
|
||||
'field_name' => 'field_farm_issues',
|
||||
'label' => 'Related Issues',
|
||||
'required' => 0,
|
||||
'settings' => array(
|
||||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'active' => 1,
|
||||
'module' => 'options',
|
||||
'settings' => array(),
|
||||
'type' => 'options_select',
|
||||
'weight' => '8',
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
// Exported field: 'log-farm_issue-field_farm_notes'.
|
||||
$fields['log-farm_issue-field_farm_notes'] = array(
|
||||
'field_config' => array(
|
||||
|
@ -632,11 +603,11 @@ function farm_log_field_default_fields() {
|
|||
'description' => '',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'above',
|
||||
'label' => 'inline',
|
||||
'module' => 'text',
|
||||
'settings' => array(),
|
||||
'type' => 'text_default',
|
||||
'weight' => '6',
|
||||
'weight' => '5',
|
||||
),
|
||||
'token' => array(
|
||||
'label' => 'above',
|
||||
|
@ -661,7 +632,7 @@ function farm_log_field_default_fields() {
|
|||
'rows' => '5',
|
||||
),
|
||||
'type' => 'text_textarea',
|
||||
'weight' => '34',
|
||||
'weight' => '37',
|
||||
),
|
||||
),
|
||||
);
|
||||
|
@ -704,14 +675,14 @@ function farm_log_field_default_fields() {
|
|||
'bundle' => 'farm_issue',
|
||||
'default_value' => NULL,
|
||||
'deleted' => '0',
|
||||
'description' => '',
|
||||
'description' => 'How important is this issue? You can manage available priority levels in the <a href="/admin/structure/taxonomy/farm_priority">Priority Levels</a> vocabulary.',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'inline',
|
||||
'module' => 'taxonomy',
|
||||
'settings' => array(),
|
||||
'type' => 'taxonomy_term_reference_plain',
|
||||
'weight' => '3',
|
||||
'weight' => '1',
|
||||
),
|
||||
'token' => array(
|
||||
'label' => 'inline',
|
||||
|
@ -774,16 +745,16 @@ function farm_log_field_default_fields() {
|
|||
),
|
||||
'field_instance' => array(
|
||||
'bundle' => 'farm_issue',
|
||||
'default_value' => array(),
|
||||
'default_value' => NULL,
|
||||
'deleted' => '0',
|
||||
'description' => 'List any threats involved with this issue. This helps to categorize data. Separate each threat with a comma. As you type, you will have the option of selecting from threats that you\'ve entered in the past.',
|
||||
'description' => 'Enter a comma-separated list of threats that this issue includes. For example: "drought", "flooding", "locusts", etc. As you type, you will have the option of selecting from threats that you\'ve entered in the past.',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'inline',
|
||||
'module' => 'taxonomy',
|
||||
'settings' => array(),
|
||||
'type' => 'taxonomy_term_reference_link',
|
||||
'weight' => '4',
|
||||
'weight' => '2',
|
||||
),
|
||||
'token' => array(
|
||||
'label' => 'inline',
|
||||
|
@ -802,14 +773,13 @@ function farm_log_field_default_fields() {
|
|||
),
|
||||
'widget' => array(
|
||||
'active' => 0,
|
||||
'module' => 'autocomplete_deluxe',
|
||||
'module' => 'taxonomy',
|
||||
'settings' => array(
|
||||
'autocomplete_deluxe_path' => 'autocomplete_deluxe/taxonomy',
|
||||
'autocomplete_path' => 'taxonomy/autocomplete',
|
||||
'size' => 60,
|
||||
),
|
||||
'type' => 'autocomplete_deluxe_taxonomy',
|
||||
'weight' => '35',
|
||||
'type' => 'taxonomy_autocomplete',
|
||||
'weight' => '34',
|
||||
),
|
||||
),
|
||||
);
|
||||
|
@ -819,16 +789,18 @@ function farm_log_field_default_fields() {
|
|||
t('Areas');
|
||||
t('Crops');
|
||||
t('Date');
|
||||
t('Enter a comma-separated list of areas that this an issue for. As you type, you will have the option of selecting from areas that you\'ve entered in the past.');
|
||||
t('Enter a comma-separated list of crops that this an issue for. As you type, you will have the option of selecting from crops that you\'ve entered in the past.');
|
||||
t('Enter a comma-separated list of threats that this issue includes. For example: "drought", "flooding", "locusts", etc. As you type, you will have the option of selecting from threats that you\'ve entered in the past.');
|
||||
t('Enter the date that this became an issue.');
|
||||
t('Files');
|
||||
t('How important is this issue? You can manage available priority levels in the <a href="/admin/structure/taxonomy/farm_priority">Priority Levels</a> vocabulary.');
|
||||
t('Images');
|
||||
t('List any threats involved with this issue. This helps to categorize data. Separate each threat with a comma. As you type, you will have the option of selecting from threats that you\'ve entered in the past.');
|
||||
t('Notes');
|
||||
t('Optionally, select other issues that are related to this one. This helps to connect data.');
|
||||
t('Priority');
|
||||
t('Record how many total hours this task took. If multiple people worked on it, multiply the time spent by the number of workers. Example: if two people worked together for 45 minutes (0.75 hours), the total time would be 1.5 hours (0.75 x 2).');
|
||||
t('Related Issues');
|
||||
t('Threats');
|
||||
t('Total work hours');
|
||||
t('Use this field to attach files to this issue record.');
|
||||
t('Use this field to attach image files to this issue record.');
|
||||
|
||||
return $fields;
|
||||
}
|
||||
|
|
|
@ -10,35 +10,6 @@
|
|||
function farm_log_field_group_info() {
|
||||
$export = array();
|
||||
|
||||
$field_group = new stdClass();
|
||||
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
|
||||
$field_group->api_version = 1;
|
||||
$field_group->identifier = 'group_farm_crops_fields|log|farm_issue|form';
|
||||
$field_group->group_name = 'group_farm_crops_fields';
|
||||
$field_group->entity_type = 'log';
|
||||
$field_group->bundle = 'farm_issue';
|
||||
$field_group->mode = 'form';
|
||||
$field_group->parent_name = '';
|
||||
$field_group->data = array(
|
||||
'label' => 'Crops + Fields',
|
||||
'weight' => '3',
|
||||
'children' => array(
|
||||
0 => 'field_farm_areas',
|
||||
1 => 'field_farm_crops',
|
||||
),
|
||||
'format_type' => 'fieldset',
|
||||
'format_settings' => array(
|
||||
'label' => 'Crops + Fields',
|
||||
'instance_settings' => array(
|
||||
'required_fields' => 0,
|
||||
'classes' => 'group-farm-crops-fields field-group-fieldset',
|
||||
'description' => '',
|
||||
),
|
||||
'formatter' => 'collapsed',
|
||||
),
|
||||
);
|
||||
$export['group_farm_crops_fields|log|farm_issue|form'] = $field_group;
|
||||
|
||||
$field_group = new stdClass();
|
||||
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
|
||||
$field_group->api_version = 1;
|
||||
|
@ -52,9 +23,11 @@ function farm_log_field_group_info() {
|
|||
'label' => 'Issue Details',
|
||||
'weight' => '2',
|
||||
'children' => array(
|
||||
0 => 'field_farm_notes',
|
||||
1 => 'field_farm_priority',
|
||||
2 => 'field_farm_threats',
|
||||
0 => 'field_farm_areas',
|
||||
1 => 'field_farm_crops',
|
||||
2 => 'field_farm_notes',
|
||||
3 => 'field_farm_priority',
|
||||
4 => 'field_farm_threats',
|
||||
),
|
||||
'format_type' => 'fieldset',
|
||||
'format_settings' => array(
|
||||
|
@ -98,33 +71,5 @@ function farm_log_field_group_info() {
|
|||
);
|
||||
$export['group_farm_files|log|farm_issue|form'] = $field_group;
|
||||
|
||||
$field_group = new stdClass();
|
||||
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
|
||||
$field_group->api_version = 1;
|
||||
$field_group->identifier = 'group_farm_related_logs|log|farm_issue|form';
|
||||
$field_group->group_name = 'group_farm_related_logs';
|
||||
$field_group->entity_type = 'log';
|
||||
$field_group->bundle = 'farm_issue';
|
||||
$field_group->mode = 'form';
|
||||
$field_group->parent_name = '';
|
||||
$field_group->data = array(
|
||||
'label' => 'Related Logs',
|
||||
'weight' => '5',
|
||||
'children' => array(
|
||||
0 => 'field_farm_issues',
|
||||
),
|
||||
'format_type' => 'fieldset',
|
||||
'format_settings' => array(
|
||||
'label' => 'Related Logs',
|
||||
'instance_settings' => array(
|
||||
'required_fields' => 0,
|
||||
'classes' => 'group-farm-related-logs field-group-fieldset',
|
||||
'description' => '',
|
||||
),
|
||||
'formatter' => 'collapsed',
|
||||
),
|
||||
);
|
||||
$export['group_farm_related_logs|log|farm_issue|form'] = $field_group;
|
||||
|
||||
return $export;
|
||||
}
|
||||
|
|
|
@ -2,7 +2,6 @@ name = Farm Log
|
|||
description = Log types and fields for farms.
|
||||
core = 7.x
|
||||
package = Farm Log
|
||||
dependencies[] = autocomplete_deluxe
|
||||
dependencies[] = ctools
|
||||
dependencies[] = date
|
||||
dependencies[] = date_popup
|
||||
|
@ -12,6 +11,7 @@ dependencies[] = entityreference
|
|||
dependencies[] = farm_area
|
||||
dependencies[] = farm_crop
|
||||
dependencies[] = features
|
||||
dependencies[] = field_collection
|
||||
dependencies[] = field_group
|
||||
dependencies[] = filefield_paths
|
||||
dependencies[] = fraction
|
||||
|
@ -26,24 +26,23 @@ features[ctools][] = field_group:field_group:1
|
|||
features[ctools][] = strongarm:strongarm:1
|
||||
features[ctools][] = views:views_default:3.0
|
||||
features[features_api][] = api:1
|
||||
features[field][] = field_collection_item-field_farm_quantity-field_farm_quantity_units
|
||||
features[field][] = field_collection_item-field_farm_quantity-field_farm_quantity_value
|
||||
features[field][] = log-farm_issue-field_farm_areas
|
||||
features[field][] = log-farm_issue-field_farm_crops
|
||||
features[field][] = log-farm_issue-field_farm_date
|
||||
features[field][] = log-farm_issue-field_farm_files
|
||||
features[field][] = log-farm_issue-field_farm_hours
|
||||
features[field][] = log-farm_issue-field_farm_images
|
||||
features[field][] = log-farm_issue-field_farm_issues
|
||||
features[field][] = log-farm_issue-field_farm_notes
|
||||
features[field][] = log-farm_issue-field_farm_priority
|
||||
features[field][] = log-farm_issue-field_farm_threats
|
||||
features[field_group][] = group_farm_crops_fields|log|farm_issue|form
|
||||
features[field_group][] = group_farm_details|log|farm_issue|form
|
||||
features[field_group][] = group_farm_files|log|farm_issue|form
|
||||
features[field_group][] = group_farm_related_logs|log|farm_issue|form
|
||||
features[log_type][] = farm_issue
|
||||
features[taxonomy][] = farm_priority
|
||||
features[taxonomy][] = farm_quantity_units
|
||||
features[taxonomy][] = farm_threats
|
||||
features[variable][] = field_bundle_settings_field_collection_item__field_farm_quantity
|
||||
features[variable][] = field_bundle_settings_log__farm_issue
|
||||
features[variable][] = pathauto_taxonomy_term_farm_priority_pattern
|
||||
features[variable][] = pathauto_taxonomy_term_farm_quantity_units_pattern
|
||||
|
|
|
@ -10,6 +10,33 @@
|
|||
function farm_log_strongarm() {
|
||||
$export = array();
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'field_bundle_settings_field_collection_item__field_farm_quantity';
|
||||
$strongarm->value = array(
|
||||
'view_modes' => array(
|
||||
'full' => array(
|
||||
'custom_settings' => FALSE,
|
||||
),
|
||||
'diff_standard' => array(
|
||||
'custom_settings' => FALSE,
|
||||
),
|
||||
'token' => array(
|
||||
'custom_settings' => FALSE,
|
||||
),
|
||||
),
|
||||
'extra_fields' => array(
|
||||
'form' => array(
|
||||
'redirect' => array(
|
||||
'weight' => '2',
|
||||
),
|
||||
),
|
||||
'display' => array(),
|
||||
),
|
||||
);
|
||||
$export['field_bundle_settings_field_collection_item__field_farm_quantity'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -34,7 +34,7 @@ function farm_log_crops_default_log_type() {
|
|||
"type" : "farm_cultivation",
|
||||
"label" : "Cultivation",
|
||||
"weight" : 0,
|
||||
"name_pattern" : "Cultivate [log:field_farm_quantity_value] [log:field-farm-quantity-units] [log:field-farm-areas] [log:field-farm-crops]",
|
||||
"name_pattern" : "Cultivate [log:field-farm-areas] [log:field-farm-crops]",
|
||||
"rdf_mapping" : []
|
||||
}');
|
||||
$items['farm_harvest'] = entity_import('log_type', '{
|
||||
|
@ -48,21 +48,14 @@ function farm_log_crops_default_log_type() {
|
|||
"type" : "farm_input",
|
||||
"label" : "Input",
|
||||
"weight" : 0,
|
||||
"name_pattern" : "[log:field-farm-input-type] [log:field_farm_quantity_value] [log:field-farm-quantity-units] [log:field-farm-inputs] [log:field-farm-areas] [log:field-farm-crops]",
|
||||
"name_pattern" : "[log:field-farm-input-type] [log:field-farm-input] [log:field-farm-areas] [log:field-farm-crops]",
|
||||
"rdf_mapping" : []
|
||||
}');
|
||||
$items['farm_planting'] = entity_import('log_type', '{
|
||||
"type" : "farm_planting",
|
||||
"label" : "Planting",
|
||||
"weight" : 0,
|
||||
"name_pattern" : "[log:field-farm-crops] [log:field-farm-season]",
|
||||
"rdf_mapping" : []
|
||||
}');
|
||||
$items['farm_planting_location'] = entity_import('log_type', '{
|
||||
"type" : "farm_planting_location",
|
||||
"label" : "Planting Location",
|
||||
"weight" : 0,
|
||||
"name_pattern" : "[log:field-farm-crops] in [log:field-farm-areas]",
|
||||
"name_pattern" : "[log:field-farm-crop] [log:field-farm-season]",
|
||||
"rdf_mapping" : []
|
||||
}');
|
||||
return $items;
|
||||
|
|
|
@ -10,122 +10,6 @@
|
|||
function farm_log_crops_field_group_info() {
|
||||
$export = array();
|
||||
|
||||
$field_group = new stdClass();
|
||||
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
|
||||
$field_group->api_version = 1;
|
||||
$field_group->identifier = 'group_farm_crops_fields|log|farm_cultivation|form';
|
||||
$field_group->group_name = 'group_farm_crops_fields';
|
||||
$field_group->entity_type = 'log';
|
||||
$field_group->bundle = 'farm_cultivation';
|
||||
$field_group->mode = 'form';
|
||||
$field_group->parent_name = '';
|
||||
$field_group->data = array(
|
||||
'label' => 'Crops + Fields',
|
||||
'weight' => '1',
|
||||
'children' => array(
|
||||
0 => 'field_farm_areas',
|
||||
1 => 'field_farm_crops',
|
||||
),
|
||||
'format_type' => 'fieldset',
|
||||
'format_settings' => array(
|
||||
'label' => 'Crops + Fields',
|
||||
'instance_settings' => array(
|
||||
'required_fields' => 0,
|
||||
'classes' => 'group-farm-crops-fields field-group-fieldset',
|
||||
'description' => '',
|
||||
),
|
||||
'formatter' => 'open',
|
||||
),
|
||||
);
|
||||
$export['group_farm_crops_fields|log|farm_cultivation|form'] = $field_group;
|
||||
|
||||
$field_group = new stdClass();
|
||||
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
|
||||
$field_group->api_version = 1;
|
||||
$field_group->identifier = 'group_farm_crops_fields|log|farm_harvest|form';
|
||||
$field_group->group_name = 'group_farm_crops_fields';
|
||||
$field_group->entity_type = 'log';
|
||||
$field_group->bundle = 'farm_harvest';
|
||||
$field_group->mode = 'form';
|
||||
$field_group->parent_name = '';
|
||||
$field_group->data = array(
|
||||
'label' => 'Crops + Fields',
|
||||
'weight' => '2',
|
||||
'children' => array(
|
||||
0 => 'field_farm_areas',
|
||||
1 => 'field_farm_crops',
|
||||
),
|
||||
'format_type' => 'fieldset',
|
||||
'format_settings' => array(
|
||||
'label' => 'Crops + Fields',
|
||||
'instance_settings' => array(
|
||||
'required_fields' => 0,
|
||||
'classes' => 'group-farm-crops-fields field-group-fieldset',
|
||||
'description' => '',
|
||||
),
|
||||
'formatter' => 'open',
|
||||
),
|
||||
);
|
||||
$export['group_farm_crops_fields|log|farm_harvest|form'] = $field_group;
|
||||
|
||||
$field_group = new stdClass();
|
||||
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
|
||||
$field_group->api_version = 1;
|
||||
$field_group->identifier = 'group_farm_crops_fields|log|farm_input|form';
|
||||
$field_group->group_name = 'group_farm_crops_fields';
|
||||
$field_group->entity_type = 'log';
|
||||
$field_group->bundle = 'farm_input';
|
||||
$field_group->mode = 'form';
|
||||
$field_group->parent_name = '';
|
||||
$field_group->data = array(
|
||||
'label' => 'Crops + Fields',
|
||||
'weight' => '3',
|
||||
'children' => array(
|
||||
0 => 'field_farm_areas',
|
||||
1 => 'field_farm_crops',
|
||||
),
|
||||
'format_type' => 'fieldset',
|
||||
'format_settings' => array(
|
||||
'label' => 'Crops + Fields',
|
||||
'instance_settings' => array(
|
||||
'required_fields' => 1,
|
||||
'classes' => 'group-farm-crops-fields field-group-fieldset',
|
||||
'description' => '',
|
||||
),
|
||||
'formatter' => 'open',
|
||||
),
|
||||
);
|
||||
$export['group_farm_crops_fields|log|farm_input|form'] = $field_group;
|
||||
|
||||
$field_group = new stdClass();
|
||||
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
|
||||
$field_group->api_version = 1;
|
||||
$field_group->identifier = 'group_farm_crops_fields|log|farm_planting|form';
|
||||
$field_group->group_name = 'group_farm_crops_fields';
|
||||
$field_group->entity_type = 'log';
|
||||
$field_group->bundle = 'farm_planting';
|
||||
$field_group->mode = 'form';
|
||||
$field_group->parent_name = '';
|
||||
$field_group->data = array(
|
||||
'label' => 'Crops + Fields',
|
||||
'weight' => '2',
|
||||
'children' => array(
|
||||
0 => 'field_farm_areas',
|
||||
1 => 'field_farm_crops',
|
||||
),
|
||||
'format_type' => 'fieldset',
|
||||
'format_settings' => array(
|
||||
'label' => 'Crops + Fields',
|
||||
'instance_settings' => array(
|
||||
'required_fields' => 0,
|
||||
'classes' => 'group-farm-crops-fields field-group-fieldset',
|
||||
'description' => '',
|
||||
),
|
||||
'formatter' => 'open',
|
||||
),
|
||||
);
|
||||
$export['group_farm_crops_fields|log|farm_planting|form'] = $field_group;
|
||||
|
||||
$field_group = new stdClass();
|
||||
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
|
||||
$field_group->api_version = 1;
|
||||
|
@ -139,9 +23,11 @@ function farm_log_crops_field_group_info() {
|
|||
'label' => 'Cultivation Details',
|
||||
'weight' => '2',
|
||||
'children' => array(
|
||||
0 => 'field_farm_notes',
|
||||
1 => 'field_farm_quantity_units',
|
||||
2 => 'field_farm_quantity_value',
|
||||
0 => 'field_farm_areas',
|
||||
1 => 'field_farm_crops',
|
||||
2 => 'field_farm_quantity',
|
||||
3 => 'field_farm_notes',
|
||||
4 => 'field_farm_cultivation_type',
|
||||
),
|
||||
'format_type' => 'fieldset',
|
||||
'format_settings' => array(
|
||||
|
@ -169,9 +55,10 @@ function farm_log_crops_field_group_info() {
|
|||
'label' => 'Harvest Details',
|
||||
'weight' => '3',
|
||||
'children' => array(
|
||||
0 => 'field_farm_notes',
|
||||
1 => 'field_farm_quantity_units',
|
||||
2 => 'field_farm_quantity_value',
|
||||
0 => 'field_farm_areas',
|
||||
1 => 'field_farm_quantity',
|
||||
2 => 'field_farm_notes',
|
||||
3 => 'field_farm_harvest_list',
|
||||
),
|
||||
'format_type' => 'fieldset',
|
||||
'format_settings' => array(
|
||||
|
@ -197,12 +84,14 @@ function farm_log_crops_field_group_info() {
|
|||
$field_group->parent_name = '';
|
||||
$field_group->data = array(
|
||||
'label' => 'Input Details',
|
||||
'weight' => '4',
|
||||
'weight' => '3',
|
||||
'children' => array(
|
||||
0 => 'field_farm_inputs',
|
||||
1 => 'field_farm_notes',
|
||||
2 => 'field_farm_quantity_units',
|
||||
3 => 'field_farm_quantity_value',
|
||||
0 => 'field_farm_areas',
|
||||
1 => 'field_farm_crops',
|
||||
2 => 'field_farm_input_type',
|
||||
3 => 'field_farm_quantity',
|
||||
4 => 'field_farm_notes',
|
||||
5 => 'field_farm_input',
|
||||
),
|
||||
'format_type' => 'fieldset',
|
||||
'format_settings' => array(
|
||||
|
@ -230,9 +119,10 @@ function farm_log_crops_field_group_info() {
|
|||
'label' => 'Planting Details',
|
||||
'weight' => '0',
|
||||
'children' => array(
|
||||
0 => 'field_farm_crops',
|
||||
1 => 'field_farm_notes',
|
||||
2 => 'field_farm_season',
|
||||
0 => 'field_farm_season',
|
||||
1 => 'field_farm_planting_location',
|
||||
2 => 'field_farm_crop',
|
||||
3 => 'field_farm_notes',
|
||||
),
|
||||
'format_type' => 'fieldset',
|
||||
'format_settings' => array(
|
||||
|
@ -363,153 +253,6 @@ function farm_log_crops_field_group_info() {
|
|||
);
|
||||
$export['group_farm_files|log|farm_planting|form'] = $field_group;
|
||||
|
||||
$field_group = new stdClass();
|
||||
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
|
||||
$field_group->api_version = 1;
|
||||
$field_group->identifier = 'group_farm_logs|log|farm_planting|form';
|
||||
$field_group->group_name = 'group_farm_logs';
|
||||
$field_group->entity_type = 'log';
|
||||
$field_group->bundle = 'farm_planting';
|
||||
$field_group->mode = 'form';
|
||||
$field_group->parent_name = '';
|
||||
$field_group->data = array(
|
||||
'label' => 'Logs',
|
||||
'weight' => '1',
|
||||
'children' => array(
|
||||
0 => 'field_farm_input_logs',
|
||||
1 => 'field_farm_issues',
|
||||
2 => 'field_farm_harvests',
|
||||
3 => 'field_farm_cultivations',
|
||||
4 => 'field_farm_planting_locations',
|
||||
),
|
||||
'format_type' => 'fieldset',
|
||||
'format_settings' => array(
|
||||
'formatter' => 'collapsible',
|
||||
'instance_settings' => array(
|
||||
'description' => '',
|
||||
'classes' => 'group-farm-logs field-group-fieldset',
|
||||
'required_fields' => 1,
|
||||
),
|
||||
),
|
||||
);
|
||||
$export['group_farm_logs|log|farm_planting|form'] = $field_group;
|
||||
|
||||
$field_group = new stdClass();
|
||||
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
|
||||
$field_group->api_version = 1;
|
||||
$field_group->identifier = 'group_farm_related_logs|log|farm_cultivation|form';
|
||||
$field_group->group_name = 'group_farm_related_logs';
|
||||
$field_group->entity_type = 'log';
|
||||
$field_group->bundle = 'farm_cultivation';
|
||||
$field_group->mode = 'form';
|
||||
$field_group->parent_name = '';
|
||||
$field_group->data = array(
|
||||
'label' => 'Related Logs',
|
||||
'weight' => '4',
|
||||
'children' => array(
|
||||
0 => 'field_farm_cultivations',
|
||||
1 => 'field_farm_issues',
|
||||
),
|
||||
'format_type' => 'fieldset',
|
||||
'format_settings' => array(
|
||||
'label' => 'Related Logs',
|
||||
'instance_settings' => array(
|
||||
'required_fields' => 0,
|
||||
'classes' => 'group-farm-related-logs field-group-fieldset',
|
||||
'description' => '',
|
||||
),
|
||||
'formatter' => 'collapsed',
|
||||
),
|
||||
);
|
||||
$export['group_farm_related_logs|log|farm_cultivation|form'] = $field_group;
|
||||
|
||||
$field_group = new stdClass();
|
||||
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
|
||||
$field_group->api_version = 1;
|
||||
$field_group->identifier = 'group_farm_related_logs|log|farm_harvest|form';
|
||||
$field_group->group_name = 'group_farm_related_logs';
|
||||
$field_group->entity_type = 'log';
|
||||
$field_group->bundle = 'farm_harvest';
|
||||
$field_group->mode = 'form';
|
||||
$field_group->parent_name = '';
|
||||
$field_group->data = array(
|
||||
'label' => 'Related Logs',
|
||||
'weight' => '5',
|
||||
'children' => array(
|
||||
0 => 'field_farm_harvests',
|
||||
1 => 'field_farm_issues',
|
||||
2 => 'field_farm_plantings',
|
||||
),
|
||||
'format_type' => 'fieldset',
|
||||
'format_settings' => array(
|
||||
'label' => 'Related Logs',
|
||||
'instance_settings' => array(
|
||||
'required_fields' => 0,
|
||||
'classes' => 'group-farm-related-logs field-group-fieldset',
|
||||
'description' => '',
|
||||
),
|
||||
'formatter' => 'collapsed',
|
||||
),
|
||||
);
|
||||
$export['group_farm_related_logs|log|farm_harvest|form'] = $field_group;
|
||||
|
||||
$field_group = new stdClass();
|
||||
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
|
||||
$field_group->api_version = 1;
|
||||
$field_group->identifier = 'group_farm_related_logs|log|farm_input|form';
|
||||
$field_group->group_name = 'group_farm_related_logs';
|
||||
$field_group->entity_type = 'log';
|
||||
$field_group->bundle = 'farm_input';
|
||||
$field_group->mode = 'form';
|
||||
$field_group->parent_name = '';
|
||||
$field_group->data = array(
|
||||
'label' => 'Related Logs',
|
||||
'weight' => '6',
|
||||
'children' => array(
|
||||
0 => 'field_farm_input_logs',
|
||||
1 => 'field_farm_issues',
|
||||
2 => 'field_farm_plantings',
|
||||
),
|
||||
'format_type' => 'fieldset',
|
||||
'format_settings' => array(
|
||||
'formatter' => 'collapsible',
|
||||
'instance_settings' => array(
|
||||
'description' => '',
|
||||
'classes' => 'group-farm-related-logs field-group-fieldset',
|
||||
'required_fields' => 1,
|
||||
),
|
||||
),
|
||||
);
|
||||
$export['group_farm_related_logs|log|farm_input|form'] = $field_group;
|
||||
|
||||
$field_group = new stdClass();
|
||||
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
|
||||
$field_group->api_version = 1;
|
||||
$field_group->identifier = 'group_farm_related_logs|log|farm_planting|form';
|
||||
$field_group->group_name = 'group_farm_related_logs';
|
||||
$field_group->entity_type = 'log';
|
||||
$field_group->bundle = 'farm_planting';
|
||||
$field_group->mode = 'form';
|
||||
$field_group->parent_name = '';
|
||||
$field_group->data = array(
|
||||
'label' => 'Related Logs',
|
||||
'weight' => '5',
|
||||
'children' => array(
|
||||
0 => 'field_farm_issues',
|
||||
1 => 'field_farm_plantings',
|
||||
),
|
||||
'format_type' => 'fieldset',
|
||||
'format_settings' => array(
|
||||
'label' => 'Related Logs',
|
||||
'instance_settings' => array(
|
||||
'required_fields' => 0,
|
||||
'classes' => 'group-farm-related-logs field-group-fieldset',
|
||||
'description' => '',
|
||||
),
|
||||
'formatter' => 'collapsed',
|
||||
),
|
||||
);
|
||||
$export['group_farm_related_logs|log|farm_planting|form'] = $field_group;
|
||||
|
||||
return $export;
|
||||
}
|
||||
|
|
|
@ -2,7 +2,6 @@ name = Farm Log Crops
|
|||
description = Log types and fields for farm crops.
|
||||
core = 7.x
|
||||
package = Farm Log
|
||||
dependencies[] = autocomplete_deluxe
|
||||
dependencies[] = date
|
||||
dependencies[] = date_popup
|
||||
dependencies[] = date_views
|
||||
|
@ -13,6 +12,7 @@ dependencies[] = farm_crop
|
|||
dependencies[] = farm_log
|
||||
dependencies[] = farm_taxonomy
|
||||
dependencies[] = features
|
||||
dependencies[] = field_collection
|
||||
dependencies[] = field_group
|
||||
dependencies[] = filefield_paths
|
||||
dependencies[] = fraction
|
||||
|
@ -26,63 +26,41 @@ features[ctools][] = field_group:field_group:1
|
|||
features[ctools][] = strongarm:strongarm:1
|
||||
features[ctools][] = views:views_default:3.0
|
||||
features[features_api][] = api:1
|
||||
features[field][] = field_collection_item-field_farm_harvest_list-field_farm_crop
|
||||
features[field][] = field_collection_item-field_farm_harvest_list-field_farm_quantity
|
||||
features[field][] = field_collection_item-field_farm_planting_location-field_farm_area
|
||||
features[field][] = field_collection_item-field_farm_planting_location-field_farm_bool
|
||||
features[field][] = field_collection_item-field_farm_planting_location-field_farm_date
|
||||
features[field][] = field_collection_item-field_farm_planting_location-field_farm_quantity
|
||||
features[field][] = log-farm_cultivation-field_farm_areas
|
||||
features[field][] = log-farm_cultivation-field_farm_crops
|
||||
features[field][] = log-farm_cultivation-field_farm_cultivations
|
||||
features[field][] = log-farm_cultivation-field_farm_cultivation_type
|
||||
features[field][] = log-farm_cultivation-field_farm_date
|
||||
features[field][] = log-farm_cultivation-field_farm_files
|
||||
features[field][] = log-farm_cultivation-field_farm_hours
|
||||
features[field][] = log-farm_cultivation-field_farm_images
|
||||
features[field][] = log-farm_cultivation-field_farm_issues
|
||||
features[field][] = log-farm_cultivation-field_farm_notes
|
||||
features[field][] = log-farm_cultivation-field_farm_quantity_units
|
||||
features[field][] = log-farm_cultivation-field_farm_quantity_value
|
||||
features[field][] = log-farm_cultivation-field_farm_quantity
|
||||
features[field][] = log-farm_harvest-field_farm_areas
|
||||
features[field][] = log-farm_harvest-field_farm_crops
|
||||
features[field][] = log-farm_harvest-field_farm_date
|
||||
features[field][] = log-farm_harvest-field_farm_files
|
||||
features[field][] = log-farm_harvest-field_farm_harvests
|
||||
features[field][] = log-farm_harvest-field_farm_hours
|
||||
features[field][] = log-farm_harvest-field_farm_harvest_list
|
||||
features[field][] = log-farm_harvest-field_farm_images
|
||||
features[field][] = log-farm_harvest-field_farm_issues
|
||||
features[field][] = log-farm_harvest-field_farm_notes
|
||||
features[field][] = log-farm_harvest-field_farm_plantings
|
||||
features[field][] = log-farm_harvest-field_farm_quantity_units
|
||||
features[field][] = log-farm_harvest-field_farm_quantity_value
|
||||
features[field][] = log-farm_input-field_farm_areas
|
||||
features[field][] = log-farm_input-field_farm_crops
|
||||
features[field][] = log-farm_input-field_farm_date
|
||||
features[field][] = log-farm_input-field_farm_files
|
||||
features[field][] = log-farm_input-field_farm_hours
|
||||
features[field][] = log-farm_input-field_farm_images
|
||||
features[field][] = log-farm_input-field_farm_input_logs
|
||||
features[field][] = log-farm_input-field_farm_input
|
||||
features[field][] = log-farm_input-field_farm_input_type
|
||||
features[field][] = log-farm_input-field_farm_inputs
|
||||
features[field][] = log-farm_input-field_farm_issues
|
||||
features[field][] = log-farm_input-field_farm_notes
|
||||
features[field][] = log-farm_input-field_farm_plantings
|
||||
features[field][] = log-farm_input-field_farm_quantity_units
|
||||
features[field][] = log-farm_input-field_farm_quantity_value
|
||||
features[field][] = log-farm_planting-field_farm_crops
|
||||
features[field][] = log-farm_planting-field_farm_cultivations
|
||||
features[field][] = log-farm_input-field_farm_quantity
|
||||
features[field][] = log-farm_planting-field_farm_crop
|
||||
features[field][] = log-farm_planting-field_farm_files
|
||||
features[field][] = log-farm_planting-field_farm_harvests
|
||||
features[field][] = log-farm_planting-field_farm_images
|
||||
features[field][] = log-farm_planting-field_farm_input_logs
|
||||
features[field][] = log-farm_planting-field_farm_issues
|
||||
features[field][] = log-farm_planting-field_farm_notes
|
||||
features[field][] = log-farm_planting-field_farm_planting_locations
|
||||
features[field][] = log-farm_planting-field_farm_planting_location
|
||||
features[field][] = log-farm_planting-field_farm_season
|
||||
features[field][] = log-farm_planting_location-field_farm_areas
|
||||
features[field][] = log-farm_planting_location-field_farm_crops
|
||||
features[field][] = log-farm_planting_location-field_farm_date
|
||||
features[field][] = log-farm_planting_location-field_farm_notes
|
||||
features[field][] = log-farm_planting_location-field_farm_quantity_units
|
||||
features[field][] = log-farm_planting_location-field_farm_quantity_value
|
||||
features[field_group][] = group_farm_crops_fields|log|farm_cultivation|form
|
||||
features[field_group][] = group_farm_crops_fields|log|farm_harvest|form
|
||||
features[field_group][] = group_farm_crops_fields|log|farm_input|form
|
||||
features[field_group][] = group_farm_crops_fields|log|farm_planting|form
|
||||
features[field_group][] = group_farm_details|log|farm_cultivation|form
|
||||
features[field_group][] = group_farm_details|log|farm_harvest|form
|
||||
features[field_group][] = group_farm_details|log|farm_input|form
|
||||
|
@ -91,24 +69,19 @@ features[field_group][] = group_farm_files|log|farm_cultivation|form
|
|||
features[field_group][] = group_farm_files|log|farm_harvest|form
|
||||
features[field_group][] = group_farm_files|log|farm_input|form
|
||||
features[field_group][] = group_farm_files|log|farm_planting|form
|
||||
features[field_group][] = group_farm_logs|log|farm_planting|form
|
||||
features[field_group][] = group_farm_related_logs|log|farm_cultivation|form
|
||||
features[field_group][] = group_farm_related_logs|log|farm_harvest|form
|
||||
features[field_group][] = group_farm_related_logs|log|farm_input|form
|
||||
features[field_group][] = group_farm_related_logs|log|farm_planting|form
|
||||
features[log_type][] = farm_cultivation
|
||||
features[log_type][] = farm_harvest
|
||||
features[log_type][] = farm_input
|
||||
features[log_type][] = farm_planting
|
||||
features[log_type][] = farm_planting_location
|
||||
features[taxonomy][] = farm_cultivation_types
|
||||
features[taxonomy][] = farm_input_types
|
||||
features[taxonomy][] = farm_inputs
|
||||
features[variable][] = field_bundle_settings_field_collection_item__field_farm_harvest_list
|
||||
features[variable][] = field_bundle_settings_field_collection_item__field_farm_planting_location
|
||||
features[variable][] = field_bundle_settings_log__farm_cultivation
|
||||
features[variable][] = field_bundle_settings_log__farm_harvest
|
||||
features[variable][] = field_bundle_settings_log__farm_input
|
||||
features[variable][] = field_bundle_settings_log__farm_planting
|
||||
features[variable][] = field_bundle_settings_log__farm_planting_location
|
||||
features[variable][] = pathauto_taxonomy_term_farm_cultivation_types_pattern
|
||||
features[variable][] = pathauto_taxonomy_term_farm_input_types_pattern
|
||||
features[variable][] = pathauto_taxonomy_term_farm_inputs_pattern
|
||||
|
@ -116,4 +89,3 @@ features[views_view][] = farm_log_cultivation
|
|||
features[views_view][] = farm_log_harvest
|
||||
features[views_view][] = farm_log_input
|
||||
features[views_view][] = farm_log_planting
|
||||
features[views_view][] = farm_log_planting_location
|
||||
|
|
|
@ -10,6 +10,56 @@
|
|||
function farm_log_crops_strongarm() {
|
||||
$export = array();
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'field_bundle_settings_field_collection_item__field_farm_harvest_list';
|
||||
$strongarm->value = array(
|
||||
'view_modes' => array(
|
||||
'full' => array(
|
||||
'custom_settings' => FALSE,
|
||||
),
|
||||
'diff_standard' => array(
|
||||
'custom_settings' => FALSE,
|
||||
),
|
||||
'token' => array(
|
||||
'custom_settings' => FALSE,
|
||||
),
|
||||
),
|
||||
'extra_fields' => array(
|
||||
'form' => array(
|
||||
'redirect' => array(
|
||||
'weight' => '2',
|
||||
),
|
||||
),
|
||||
'display' => array(),
|
||||
),
|
||||
);
|
||||
$export['field_bundle_settings_field_collection_item__field_farm_harvest_list'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'field_bundle_settings_field_collection_item__field_farm_planting_location';
|
||||
$strongarm->value = array(
|
||||
'view_modes' => array(
|
||||
'full' => array(
|
||||
'custom_settings' => FALSE,
|
||||
),
|
||||
'diff_standard' => array(
|
||||
'custom_settings' => FALSE,
|
||||
),
|
||||
'token' => array(
|
||||
'custom_settings' => FALSE,
|
||||
),
|
||||
),
|
||||
'extra_fields' => array(
|
||||
'form' => array(),
|
||||
'display' => array(),
|
||||
),
|
||||
);
|
||||
$export['field_bundle_settings_field_collection_item__field_farm_planting_location'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
|
@ -27,11 +77,7 @@ function farm_log_crops_strongarm() {
|
|||
),
|
||||
),
|
||||
'extra_fields' => array(
|
||||
'form' => array(
|
||||
'redirect' => array(
|
||||
'weight' => '6',
|
||||
),
|
||||
),
|
||||
'form' => array(),
|
||||
'display' => array(),
|
||||
),
|
||||
);
|
||||
|
@ -106,36 +152,6 @@ function farm_log_crops_strongarm() {
|
|||
);
|
||||
$export['field_bundle_settings_log__farm_planting'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'field_bundle_settings_log__farm_planting_location';
|
||||
$strongarm->value = array(
|
||||
'view_modes' => array(
|
||||
'entityreference_view_widget' => array(
|
||||
'custom_settings' => TRUE,
|
||||
),
|
||||
'full' => array(
|
||||
'custom_settings' => FALSE,
|
||||
),
|
||||
'diff_standard' => array(
|
||||
'custom_settings' => FALSE,
|
||||
),
|
||||
'token' => array(
|
||||
'custom_settings' => FALSE,
|
||||
),
|
||||
),
|
||||
'extra_fields' => array(
|
||||
'form' => array(
|
||||
'redirect' => array(
|
||||
'weight' => '6',
|
||||
),
|
||||
),
|
||||
'display' => array(),
|
||||
),
|
||||
);
|
||||
$export['field_bundle_settings_log__farm_planting_location'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
|
|
Loading…
Reference in New Issue