2017-05-20 00:03:12 +02:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* @file
|
|
|
|
* farm_livestock.field_group.inc
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Implements hook_field_group_info().
|
|
|
|
*/
|
|
|
|
function farm_livestock_field_group_info() {
|
|
|
|
$field_groups = array();
|
|
|
|
|
2017-06-12 21:33:25 +02:00
|
|
|
$field_group = new stdClass();
|
|
|
|
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
|
|
|
|
$field_group->api_version = 1;
|
|
|
|
$field_group->identifier = 'group_farm_assignment|log|farm_medical|form';
|
|
|
|
$field_group->group_name = 'group_farm_assignment';
|
|
|
|
$field_group->entity_type = 'log';
|
|
|
|
$field_group->bundle = 'farm_medical';
|
|
|
|
$field_group->mode = 'form';
|
|
|
|
$field_group->parent_name = '';
|
|
|
|
$field_group->data = array(
|
|
|
|
'label' => 'Assignment',
|
|
|
|
'weight' => '3',
|
|
|
|
'children' => array(
|
|
|
|
0 => 'field_farm_log_owner',
|
|
|
|
),
|
|
|
|
'format_type' => 'fieldset',
|
|
|
|
'format_settings' => array(
|
|
|
|
'label' => 'Assignment',
|
|
|
|
'instance_settings' => array(
|
|
|
|
'required_fields' => 1,
|
|
|
|
'id' => '',
|
|
|
|
'classes' => 'group-farm-assignment field-group-fieldset',
|
|
|
|
'description' => '',
|
|
|
|
),
|
|
|
|
'formatter' => 'collapsed',
|
|
|
|
),
|
|
|
|
);
|
|
|
|
$field_groups['group_farm_assignment|log|farm_medical|form'] = $field_group;
|
|
|
|
|
2017-05-20 00:03:12 +02:00
|
|
|
$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_description|farm_asset|animal|form';
|
|
|
|
$field_group->group_name = 'group_farm_description';
|
|
|
|
$field_group->entity_type = 'farm_asset';
|
|
|
|
$field_group->bundle = 'animal';
|
|
|
|
$field_group->mode = 'form';
|
|
|
|
$field_group->parent_name = '';
|
|
|
|
$field_group->data = array(
|
|
|
|
'label' => 'Description',
|
|
|
|
'weight' => '2',
|
|
|
|
'children' => array(
|
|
|
|
0 => 'field_farm_description',
|
|
|
|
),
|
|
|
|
'format_type' => 'fieldset',
|
|
|
|
'format_settings' => array(
|
|
|
|
'label' => 'Description',
|
|
|
|
'instance_settings' => array(
|
|
|
|
'required_fields' => 1,
|
|
|
|
'id' => '',
|
|
|
|
'classes' => 'group-farm-description field-group-fieldset',
|
|
|
|
'description' => '',
|
|
|
|
),
|
|
|
|
'formatter' => 'collapsed',
|
|
|
|
),
|
|
|
|
);
|
|
|
|
$field_groups['group_farm_description|farm_asset|animal|form'] = $field_group;
|
|
|
|
|
|
|
|
$field_group = new stdClass();
|
|
|
|
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
|
|
|
|
$field_group->api_version = 1;
|
|
|
|
$field_group->identifier = 'group_farm_files|farm_asset|animal|form';
|
|
|
|
$field_group->group_name = 'group_farm_files';
|
|
|
|
$field_group->entity_type = 'farm_asset';
|
|
|
|
$field_group->bundle = 'animal';
|
|
|
|
$field_group->mode = 'form';
|
|
|
|
$field_group->parent_name = '';
|
|
|
|
$field_group->data = array(
|
|
|
|
'label' => 'File attachments',
|
|
|
|
'weight' => '5',
|
|
|
|
'children' => array(
|
|
|
|
0 => 'field_farm_images',
|
|
|
|
1 => 'field_farm_files',
|
|
|
|
),
|
|
|
|
'format_type' => 'fieldset',
|
|
|
|
'format_settings' => array(
|
|
|
|
'label' => 'File attachments',
|
|
|
|
'instance_settings' => array(
|
|
|
|
'required_fields' => 1,
|
|
|
|
'id' => '',
|
|
|
|
'classes' => 'group-farm-files field-group-fieldset',
|
|
|
|
'description' => '',
|
|
|
|
),
|
|
|
|
'formatter' => 'collapsed',
|
|
|
|
),
|
|
|
|
);
|
|
|
|
$field_groups['group_farm_files|farm_asset|animal|form'] = $field_group;
|
|
|
|
|
|
|
|
$field_group = new stdClass();
|
|
|
|
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
|
|
|
|
$field_group->api_version = 1;
|
|
|
|
$field_group->identifier = 'group_farm_files|log|farm_medical|form';
|
|
|
|
$field_group->group_name = 'group_farm_files';
|
|
|
|
$field_group->entity_type = 'log';
|
|
|
|
$field_group->bundle = 'farm_medical';
|
|
|
|
$field_group->mode = 'form';
|
|
|
|
$field_group->parent_name = '';
|
|
|
|
$field_group->data = array(
|
|
|
|
'label' => 'File attachments',
|
|
|
|
'weight' => '4',
|
|
|
|
'children' => array(
|
|
|
|
0 => 'field_farm_files',
|
|
|
|
1 => 'field_farm_images',
|
|
|
|
),
|
|
|
|
'format_type' => 'fieldset',
|
|
|
|
'format_settings' => array(
|
|
|
|
'label' => 'File attachments',
|
|
|
|
'instance_settings' => array(
|
|
|
|
'required_fields' => 1,
|
|
|
|
'id' => '',
|
|
|
|
'classes' => 'group-farm-files field-group-fieldset',
|
|
|
|
'description' => '',
|
|
|
|
),
|
|
|
|
'formatter' => 'collapsed',
|
|
|
|
),
|
|
|
|
);
|
|
|
|
$field_groups['group_farm_files|log|farm_medical|form'] = $field_group;
|
|
|
|
|
|
|
|
$field_group = new stdClass();
|
|
|
|
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
|
|
|
|
$field_group->api_version = 1;
|
|
|
|
$field_group->identifier = 'group_farm_general|farm_asset|animal|form';
|
|
|
|
$field_group->group_name = 'group_farm_general';
|
|
|
|
$field_group->entity_type = 'farm_asset';
|
|
|
|
$field_group->bundle = 'animal';
|
|
|
|
$field_group->mode = 'form';
|
|
|
|
$field_group->parent_name = '';
|
|
|
|
$field_group->data = array(
|
|
|
|
'label' => 'General information',
|
|
|
|
'weight' => '0',
|
|
|
|
'children' => array(
|
|
|
|
0 => 'field_farm_animal_sex',
|
|
|
|
1 => 'field_farm_animal_type',
|
|
|
|
2 => 'field_farm_date',
|
|
|
|
3 => 'field_farm_animal_group',
|
|
|
|
4 => 'field_farm_animal_castrated',
|
|
|
|
5 => 'name',
|
|
|
|
),
|
|
|
|
'format_type' => 'fieldset',
|
|
|
|
'format_settings' => array(
|
|
|
|
'formatter' => 'collapsible',
|
|
|
|
'instance_settings' => array(
|
|
|
|
'description' => '',
|
|
|
|
'classes' => 'group-farm-general field-group-fieldset',
|
|
|
|
'required_fields' => 1,
|
|
|
|
'id' => '',
|
|
|
|
),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
$field_groups['group_farm_general|farm_asset|animal|form'] = $field_group;
|
|
|
|
|
|
|
|
$field_group = new stdClass();
|
|
|
|
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
|
|
|
|
$field_group->api_version = 1;
|
|
|
|
$field_group->identifier = 'group_farm_general|log|farm_medical|form';
|
|
|
|
$field_group->group_name = 'group_farm_general';
|
|
|
|
$field_group->entity_type = 'log';
|
|
|
|
$field_group->bundle = 'farm_medical';
|
|
|
|
$field_group->mode = 'form';
|
|
|
|
$field_group->parent_name = '';
|
|
|
|
$field_group->data = array(
|
|
|
|
'label' => 'General information',
|
|
|
|
'weight' => '0',
|
|
|
|
'children' => array(
|
|
|
|
0 => 'field_farm_asset',
|
|
|
|
1 => 'name',
|
|
|
|
2 => 'timestamp',
|
|
|
|
),
|
|
|
|
'format_type' => 'fieldset',
|
|
|
|
'format_settings' => array(
|
|
|
|
'formatter' => 'collapsible',
|
|
|
|
'instance_settings' => array(
|
|
|
|
'description' => '',
|
|
|
|
'classes' => 'group-farm-general field-group-fieldset',
|
|
|
|
'required_fields' => 1,
|
|
|
|
'id' => '',
|
|
|
|
),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
$field_groups['group_farm_general|log|farm_medical|form'] = $field_group;
|
|
|
|
|
|
|
|
$field_group = new stdClass();
|
|
|
|
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
|
|
|
|
$field_group->api_version = 1;
|
|
|
|
$field_group->identifier = 'group_farm_id|farm_asset|animal|form';
|
|
|
|
$field_group->group_name = 'group_farm_id';
|
|
|
|
$field_group->entity_type = 'farm_asset';
|
|
|
|
$field_group->bundle = 'animal';
|
|
|
|
$field_group->mode = 'form';
|
|
|
|
$field_group->parent_name = '';
|
|
|
|
$field_group->data = array(
|
|
|
|
'label' => 'Identification',
|
|
|
|
'weight' => '3',
|
|
|
|
'children' => array(
|
|
|
|
0 => 'field_farm_animal_nicknames',
|
|
|
|
1 => 'field_farm_animal_tag',
|
|
|
|
),
|
|
|
|
'format_type' => 'fieldset',
|
|
|
|
'format_settings' => array(
|
|
|
|
'label' => 'Identification',
|
|
|
|
'instance_settings' => array(
|
|
|
|
'required_fields' => 1,
|
|
|
|
'id' => '',
|
|
|
|
'classes' => 'group-farm-id field-group-fieldset',
|
|
|
|
'description' => '',
|
|
|
|
),
|
|
|
|
'formatter' => 'collapsed',
|
|
|
|
),
|
|
|
|
);
|
|
|
|
$field_groups['group_farm_id|farm_asset|animal|form'] = $field_group;
|
|
|
|
|
|
|
|
$field_group = new stdClass();
|
|
|
|
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
|
|
|
|
$field_group->api_version = 1;
|
|
|
|
$field_group->identifier = 'group_farm_lineage|farm_asset|animal|form';
|
|
|
|
$field_group->group_name = 'group_farm_lineage';
|
|
|
|
$field_group->entity_type = 'farm_asset';
|
|
|
|
$field_group->bundle = 'animal';
|
|
|
|
$field_group->mode = 'form';
|
|
|
|
$field_group->parent_name = '';
|
|
|
|
$field_group->data = array(
|
|
|
|
'label' => 'Lineage',
|
|
|
|
'weight' => '4',
|
|
|
|
'children' => array(
|
|
|
|
0 => 'field_farm_parent',
|
|
|
|
),
|
|
|
|
'format_type' => 'fieldset',
|
|
|
|
'format_settings' => array(
|
|
|
|
'label' => 'Lineage',
|
|
|
|
'instance_settings' => array(
|
|
|
|
'required_fields' => 1,
|
|
|
|
'id' => '',
|
|
|
|
'classes' => 'group-farm-lineage field-group-fieldset',
|
|
|
|
'description' => '',
|
|
|
|
),
|
|
|
|
'formatter' => 'collapsed',
|
|
|
|
),
|
|
|
|
);
|
|
|
|
$field_groups['group_farm_lineage|farm_asset|animal|form'] = $field_group;
|
|
|
|
|
|
|
|
$field_group = new stdClass();
|
|
|
|
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
|
|
|
|
$field_group->api_version = 1;
|
|
|
|
$field_group->identifier = 'group_farm_notes|log|farm_medical|form';
|
|
|
|
$field_group->group_name = 'group_farm_notes';
|
|
|
|
$field_group->entity_type = 'log';
|
|
|
|
$field_group->bundle = 'farm_medical';
|
|
|
|
$field_group->mode = 'form';
|
|
|
|
$field_group->parent_name = '';
|
|
|
|
$field_group->data = array(
|
|
|
|
'label' => 'Notes',
|
2017-06-12 21:33:25 +02:00
|
|
|
'weight' => '2',
|
2017-05-20 00:03:12 +02:00
|
|
|
'children' => array(
|
|
|
|
0 => 'field_farm_notes',
|
|
|
|
),
|
|
|
|
'format_type' => 'fieldset',
|
|
|
|
'format_settings' => array(
|
|
|
|
'label' => 'Notes',
|
|
|
|
'instance_settings' => array(
|
|
|
|
'required_fields' => 1,
|
|
|
|
'id' => '',
|
|
|
|
'classes' => 'group-farm-notes field-group-fieldset',
|
|
|
|
'description' => '',
|
|
|
|
),
|
|
|
|
'formatter' => 'collapsed',
|
|
|
|
),
|
|
|
|
);
|
|
|
|
$field_groups['group_farm_notes|log|farm_medical|form'] = $field_group;
|
|
|
|
|
|
|
|
// Translatables
|
|
|
|
// Included for use with string extractors like potx.
|
2017-06-12 21:33:25 +02:00
|
|
|
t('Assignment');
|
2017-05-20 00:03:12 +02:00
|
|
|
t('Description');
|
|
|
|
t('File attachments');
|
|
|
|
t('General information');
|
|
|
|
t('Identification');
|
|
|
|
t('Lineage');
|
|
|
|
t('Notes');
|
|
|
|
|
|
|
|
return $field_groups;
|
|
|
|
}
|