mirror of
https://github.com/farmOS/farmOS.git
synced 2024-02-23 11:37:38 +01:00
420 lines
14 KiB
PHP
420 lines
14 KiB
PHP
<?php
|
|
/**
|
|
* @file
|
|
* farm_equipment.field_group.inc
|
|
*/
|
|
|
|
/**
|
|
* Implements hook_field_group_info().
|
|
*/
|
|
function farm_equipment_field_group_info() {
|
|
$field_groups = array();
|
|
|
|
$field_group = new stdClass();
|
|
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
|
|
$field_group->api_version = 1;
|
|
$field_group->identifier = 'group_farm_areas|log|farm_maintenance|form';
|
|
$field_group->group_name = 'group_farm_areas';
|
|
$field_group->entity_type = 'log';
|
|
$field_group->bundle = 'farm_maintenance';
|
|
$field_group->mode = 'form';
|
|
$field_group->parent_name = 'group_farm_location';
|
|
$field_group->data = array(
|
|
'label' => 'Areas',
|
|
'weight' => '19',
|
|
'children' => array(
|
|
0 => 'field_farm_area',
|
|
),
|
|
'format_type' => 'fieldset',
|
|
'format_settings' => array(
|
|
'label' => 'Areas',
|
|
'instance_settings' => array(
|
|
'required_fields' => 1,
|
|
'id' => '',
|
|
'classes' => 'group-farm-areas field-group-fieldset',
|
|
'description' => '',
|
|
),
|
|
'formatter' => 'open',
|
|
),
|
|
);
|
|
$field_groups['group_farm_areas|log|farm_maintenance|form'] = $field_group;
|
|
|
|
$field_group = new stdClass();
|
|
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
|
|
$field_group->api_version = 1;
|
|
$field_group->identifier = 'group_farm_assets|log|farm_maintenance|form';
|
|
$field_group->group_name = 'group_farm_assets';
|
|
$field_group->entity_type = 'log';
|
|
$field_group->bundle = 'farm_maintenance';
|
|
$field_group->mode = 'form';
|
|
$field_group->parent_name = 'group_farm_tabs';
|
|
$field_group->data = array(
|
|
'label' => 'Assets',
|
|
'weight' => '2',
|
|
'children' => array(
|
|
0 => 'field_farm_asset',
|
|
1 => 'field_farm_movement',
|
|
),
|
|
'format_type' => 'fieldset',
|
|
'format_settings' => array(
|
|
'label' => 'Assets',
|
|
'instance_settings' => array(
|
|
'required_fields' => 1,
|
|
'id' => '',
|
|
'classes' => 'group-farm-assets field-group-fieldset',
|
|
'description' => '',
|
|
),
|
|
'formatter' => 'open',
|
|
),
|
|
);
|
|
$field_groups['group_farm_assets|log|farm_maintenance|form'] = $field_group;
|
|
|
|
$field_group = new stdClass();
|
|
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
|
|
$field_group->api_version = 1;
|
|
$field_group->identifier = 'group_farm_assignment|log|farm_maintenance|form';
|
|
$field_group->group_name = 'group_farm_assignment';
|
|
$field_group->entity_type = 'log';
|
|
$field_group->bundle = 'farm_maintenance';
|
|
$field_group->mode = 'form';
|
|
$field_group->parent_name = 'group_farm_general';
|
|
$field_group->data = array(
|
|
'label' => 'Assignment',
|
|
'weight' => '4',
|
|
'children' => array(
|
|
0 => 'field_farm_log_owner',
|
|
),
|
|
'format_type' => 'fieldset',
|
|
'format_settings' => array(
|
|
'label' => 'Assignment',
|
|
'instance_settings' => array(
|
|
'required_fields' => 1,
|
|
'id' => '',
|
|
'classes' => 'group-farm-assignment field-group-fieldset',
|
|
'description' => '',
|
|
),
|
|
'formatter' => 'collapsed',
|
|
),
|
|
);
|
|
$field_groups['group_farm_assignment|log|farm_maintenance|form'] = $field_group;
|
|
|
|
$field_group = new stdClass();
|
|
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
|
|
$field_group->api_version = 1;
|
|
$field_group->identifier = 'group_farm_category|log|farm_maintenance|form';
|
|
$field_group->group_name = 'group_farm_category';
|
|
$field_group->entity_type = 'log';
|
|
$field_group->bundle = 'farm_maintenance';
|
|
$field_group->mode = 'form';
|
|
$field_group->parent_name = 'group_farm_general';
|
|
$field_group->data = array(
|
|
'label' => 'Category',
|
|
'weight' => '3',
|
|
'children' => array(
|
|
0 => 'field_farm_log_category',
|
|
),
|
|
'format_type' => 'fieldset',
|
|
'format_settings' => array(
|
|
'label' => 'Category',
|
|
'instance_settings' => array(
|
|
'required_fields' => 1,
|
|
'id' => '',
|
|
'classes' => 'group-farm-category field-group-fieldset',
|
|
'description' => '',
|
|
),
|
|
'formatter' => 'collapsed',
|
|
),
|
|
);
|
|
$field_groups['group_farm_category|log|farm_maintenance|form'] = $field_group;
|
|
|
|
$field_group = new stdClass();
|
|
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
|
|
$field_group->api_version = 1;
|
|
$field_group->identifier = 'group_farm_files|farm_asset|equipment|form';
|
|
$field_group->group_name = 'group_farm_files';
|
|
$field_group->entity_type = 'farm_asset';
|
|
$field_group->bundle = 'equipment';
|
|
$field_group->mode = 'form';
|
|
$field_group->parent_name = 'group_farm_tabs';
|
|
$field_group->data = array(
|
|
'label' => 'Files',
|
|
'weight' => '2',
|
|
'children' => array(
|
|
0 => 'field_farm_files',
|
|
1 => 'field_farm_images',
|
|
),
|
|
'format_type' => 'field_group_easy_responsive_tabs_nav_item',
|
|
'format_settings' => array(
|
|
'label' => 'Files',
|
|
'instance_settings' => array(
|
|
'required_fields' => 1,
|
|
'classes' => '',
|
|
),
|
|
'formatter' => '',
|
|
),
|
|
);
|
|
$field_groups['group_farm_files|farm_asset|equipment|form'] = $field_group;
|
|
|
|
$field_group = new stdClass();
|
|
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
|
|
$field_group->api_version = 1;
|
|
$field_group->identifier = 'group_farm_files|log|farm_maintenance|form';
|
|
$field_group->group_name = 'group_farm_files';
|
|
$field_group->entity_type = 'log';
|
|
$field_group->bundle = 'farm_maintenance';
|
|
$field_group->mode = 'form';
|
|
$field_group->parent_name = 'group_farm_tabs';
|
|
$field_group->data = array(
|
|
'label' => 'Files',
|
|
'weight' => '5',
|
|
'children' => array(
|
|
0 => 'field_farm_files',
|
|
1 => 'field_farm_images',
|
|
),
|
|
'format_type' => 'field_group_easy_responsive_tabs_nav_item',
|
|
'format_settings' => array(
|
|
'formatter' => '',
|
|
'instance_settings' => array(
|
|
'classes' => '',
|
|
'required_fields' => 1,
|
|
),
|
|
),
|
|
);
|
|
$field_groups['group_farm_files|log|farm_maintenance|form'] = $field_group;
|
|
|
|
$field_group = new stdClass();
|
|
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
|
|
$field_group->api_version = 1;
|
|
$field_group->identifier = 'group_farm_general|farm_asset|equipment|form';
|
|
$field_group->group_name = 'group_farm_general';
|
|
$field_group->entity_type = 'farm_asset';
|
|
$field_group->bundle = 'equipment';
|
|
$field_group->mode = 'form';
|
|
$field_group->parent_name = 'group_farm_tabs';
|
|
$field_group->data = array(
|
|
'label' => 'General',
|
|
'weight' => '1',
|
|
'children' => array(
|
|
0 => 'field_farm_description',
|
|
1 => 'field_farm_manufacturer',
|
|
2 => 'field_farm_model',
|
|
3 => 'field_farm_serial_number',
|
|
4 => 'field_farm_flags',
|
|
5 => 'name',
|
|
),
|
|
'format_type' => 'field_group_easy_responsive_tabs_nav_item',
|
|
'format_settings' => array(
|
|
'label' => 'General',
|
|
'instance_settings' => array(
|
|
'required_fields' => 1,
|
|
'classes' => '',
|
|
),
|
|
'formatter' => '',
|
|
),
|
|
);
|
|
$field_groups['group_farm_general|farm_asset|equipment|form'] = $field_group;
|
|
|
|
$field_group = new stdClass();
|
|
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
|
|
$field_group->api_version = 1;
|
|
$field_group->identifier = 'group_farm_general|log|farm_maintenance|form';
|
|
$field_group->group_name = 'group_farm_general';
|
|
$field_group->entity_type = 'log';
|
|
$field_group->bundle = 'farm_maintenance';
|
|
$field_group->mode = 'form';
|
|
$field_group->parent_name = 'group_farm_tabs';
|
|
$field_group->data = array(
|
|
'label' => 'General',
|
|
'weight' => '1',
|
|
'children' => array(
|
|
0 => 'field_farm_notes',
|
|
1 => 'field_farm_flags',
|
|
2 => 'name',
|
|
3 => 'timestamp',
|
|
4 => 'group_farm_category',
|
|
5 => 'group_farm_assignment',
|
|
),
|
|
'format_type' => 'field_group_easy_responsive_tabs_nav_item',
|
|
'format_settings' => array(
|
|
'label' => 'General',
|
|
'instance_settings' => array(
|
|
'required_fields' => 1,
|
|
'classes' => '',
|
|
),
|
|
'formatter' => '',
|
|
),
|
|
);
|
|
$field_groups['group_farm_general|log|farm_maintenance|form'] = $field_group;
|
|
|
|
$field_group = new stdClass();
|
|
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
|
|
$field_group->api_version = 1;
|
|
$field_group->identifier = 'group_farm_geometry|log|farm_maintenance|form';
|
|
$field_group->group_name = 'group_farm_geometry';
|
|
$field_group->entity_type = 'log';
|
|
$field_group->bundle = 'farm_maintenance';
|
|
$field_group->mode = 'form';
|
|
$field_group->parent_name = 'group_farm_location';
|
|
$field_group->data = array(
|
|
'label' => 'Geometry',
|
|
'weight' => '20',
|
|
'children' => array(
|
|
0 => 'field_farm_geofield',
|
|
),
|
|
'format_type' => 'fieldset',
|
|
'format_settings' => array(
|
|
'label' => 'Geometry',
|
|
'instance_settings' => array(
|
|
'required_fields' => 1,
|
|
'id' => '',
|
|
'classes' => 'group-farm-geometry field-group-fieldset',
|
|
'description' => '',
|
|
),
|
|
'formatter' => 'collapsed',
|
|
),
|
|
);
|
|
$field_groups['group_farm_geometry|log|farm_maintenance|form'] = $field_group;
|
|
|
|
$field_group = new stdClass();
|
|
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
|
|
$field_group->api_version = 1;
|
|
$field_group->identifier = 'group_farm_inventory|log|farm_maintenance|form';
|
|
$field_group->group_name = 'group_farm_inventory';
|
|
$field_group->entity_type = 'log';
|
|
$field_group->bundle = 'farm_maintenance';
|
|
$field_group->mode = 'form';
|
|
$field_group->parent_name = 'group_farm_tabs';
|
|
$field_group->data = array(
|
|
'label' => 'Inventory',
|
|
'weight' => '4',
|
|
'children' => array(
|
|
0 => 'field_farm_inventory',
|
|
),
|
|
'format_type' => 'field_group_easy_responsive_tabs_nav_item',
|
|
'format_settings' => array(
|
|
'formatter' => '',
|
|
'instance_settings' => array(
|
|
'classes' => 'group-farm-inventory field-group-field_group_easy_responsive_tabs_nav_item',
|
|
'required_fields' => 1,
|
|
),
|
|
),
|
|
);
|
|
$field_groups['group_farm_inventory|log|farm_maintenance|form'] = $field_group;
|
|
|
|
$field_group = new stdClass();
|
|
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
|
|
$field_group->api_version = 1;
|
|
$field_group->identifier = 'group_farm_location|log|farm_maintenance|form';
|
|
$field_group->group_name = 'group_farm_location';
|
|
$field_group->entity_type = 'log';
|
|
$field_group->bundle = 'farm_maintenance';
|
|
$field_group->mode = 'form';
|
|
$field_group->parent_name = 'group_farm_tabs';
|
|
$field_group->data = array(
|
|
'label' => 'Location',
|
|
'weight' => '3',
|
|
'children' => array(
|
|
0 => 'group_farm_geometry',
|
|
1 => 'group_farm_areas',
|
|
),
|
|
'format_type' => 'field_group_easy_responsive_tabs_nav_item',
|
|
'format_settings' => array(
|
|
'formatter' => '',
|
|
'instance_settings' => array(
|
|
'classes' => 'group-farm-location field-group-field_group_easy_responsive_tabs_nav_item',
|
|
'required_fields' => 1,
|
|
),
|
|
),
|
|
);
|
|
$field_groups['group_farm_location|log|farm_maintenance|form'] = $field_group;
|
|
|
|
$field_group = new stdClass();
|
|
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
|
|
$field_group->api_version = 1;
|
|
$field_group->identifier = 'group_farm_tabs|farm_asset|equipment|form';
|
|
$field_group->group_name = 'group_farm_tabs';
|
|
$field_group->entity_type = 'farm_asset';
|
|
$field_group->bundle = 'equipment';
|
|
$field_group->mode = 'form';
|
|
$field_group->parent_name = '';
|
|
$field_group->data = array(
|
|
'label' => 'Tabs',
|
|
'weight' => '0',
|
|
'children' => array(
|
|
0 => 'group_farm_files',
|
|
1 => 'group_farm_general',
|
|
),
|
|
'format_type' => 'field_group_easy_responsive_tabs_nav',
|
|
'format_settings' => array(
|
|
'label' => 'Tabs',
|
|
'instance_settings' => array(
|
|
'type' => 'vertical',
|
|
'width' => 'auto',
|
|
'fit' => '1',
|
|
'closed' => '0',
|
|
'activetab_bg' => '',
|
|
'inactive_bg' => '',
|
|
'active_border_color' => '',
|
|
'active_content_border_color' => '',
|
|
'tabidentify' => '',
|
|
'required_fields' => 1,
|
|
'classes' => 'group-farm-tabs field-group-field_group_easy_responsive_tabs_nav',
|
|
),
|
|
),
|
|
);
|
|
$field_groups['group_farm_tabs|farm_asset|equipment|form'] = $field_group;
|
|
|
|
$field_group = new stdClass();
|
|
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
|
|
$field_group->api_version = 1;
|
|
$field_group->identifier = 'group_farm_tabs|log|farm_maintenance|form';
|
|
$field_group->group_name = 'group_farm_tabs';
|
|
$field_group->entity_type = 'log';
|
|
$field_group->bundle = 'farm_maintenance';
|
|
$field_group->mode = 'form';
|
|
$field_group->parent_name = '';
|
|
$field_group->data = array(
|
|
'label' => 'Tabs',
|
|
'weight' => '0',
|
|
'children' => array(
|
|
0 => 'group_farm_assets',
|
|
1 => 'group_farm_files',
|
|
2 => 'group_farm_general',
|
|
3 => 'group_farm_inventory',
|
|
4 => 'group_farm_location',
|
|
),
|
|
'format_type' => 'field_group_easy_responsive_tabs_nav',
|
|
'format_settings' => array(
|
|
'label' => 'Tabs',
|
|
'instance_settings' => array(
|
|
'type' => 'vertical',
|
|
'width' => 'auto',
|
|
'fit' => '1',
|
|
'closed' => '0',
|
|
'activetab_bg' => '',
|
|
'inactive_bg' => '',
|
|
'active_border_color' => '',
|
|
'active_content_border_color' => '',
|
|
'tabidentify' => '',
|
|
'required_fields' => 1,
|
|
'classes' => 'group-farm-tabs field-group-field_group_easy_responsive_tabs_nav',
|
|
),
|
|
),
|
|
);
|
|
$field_groups['group_farm_tabs|log|farm_maintenance|form'] = $field_group;
|
|
|
|
// Translatables
|
|
// Included for use with string extractors like potx.
|
|
t('Areas');
|
|
t('Assets');
|
|
t('Assignment');
|
|
t('Category');
|
|
t('Files');
|
|
t('General');
|
|
t('Geometry');
|
|
t('Inventory');
|
|
t('Location');
|
|
t('Tabs');
|
|
|
|
return $field_groups;
|
|
}
|