Issue #3092757: Add Vet field to Medical log
This commit is contained in:
parent
5888a3410b
commit
75a4e8e491
|
@ -239,5 +239,26 @@ function farm_livestock_field_default_field_bases() {
|
|||
'type' => 'entityreference',
|
||||
);
|
||||
|
||||
// Exported field_base: 'field_farm_vet'.
|
||||
$field_bases['field_farm_vet'] = array(
|
||||
'active' => 1,
|
||||
'cardinality' => 1,
|
||||
'deleted' => 0,
|
||||
'entity_types' => array(),
|
||||
'field_name' => 'field_farm_vet',
|
||||
'indexes' => array(
|
||||
'format' => array(
|
||||
0 => 'format',
|
||||
),
|
||||
),
|
||||
'locked' => 0,
|
||||
'module' => 'text',
|
||||
'settings' => array(
|
||||
'max_length' => 255,
|
||||
),
|
||||
'translatable' => 0,
|
||||
'type' => 'text',
|
||||
);
|
||||
|
||||
return $field_bases;
|
||||
}
|
||||
|
|
|
@ -1045,7 +1045,7 @@ function farm_livestock_field_default_field_instances() {
|
|||
'view_mode' => 'full',
|
||||
),
|
||||
'type' => 'entityreference_view_widget',
|
||||
'weight' => 1,
|
||||
'weight' => -8,
|
||||
),
|
||||
);
|
||||
|
||||
|
@ -1098,7 +1098,7 @@ function farm_livestock_field_default_field_instances() {
|
|||
'module' => 'list',
|
||||
'settings' => array(),
|
||||
'type' => 'list_default',
|
||||
'weight' => 4,
|
||||
'weight' => 6,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'log',
|
||||
|
@ -1113,7 +1113,7 @@ function farm_livestock_field_default_field_instances() {
|
|||
'module' => 'options',
|
||||
'settings' => array(),
|
||||
'type' => 'options_buttons',
|
||||
'weight' => 3,
|
||||
'weight' => -5,
|
||||
),
|
||||
);
|
||||
|
||||
|
@ -1213,7 +1213,7 @@ function farm_livestock_field_default_field_instances() {
|
|||
'module' => 'taxonomy',
|
||||
'settings' => array(),
|
||||
'type' => 'taxonomy_term_reference_link',
|
||||
'weight' => 5,
|
||||
'weight' => 7,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'log',
|
||||
|
@ -1247,7 +1247,7 @@ function farm_livestock_field_default_field_instances() {
|
|||
'link' => FALSE,
|
||||
),
|
||||
'type' => 'entityreference_label',
|
||||
'weight' => 6,
|
||||
'weight' => 8,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'log',
|
||||
|
@ -1311,7 +1311,7 @@ function farm_livestock_field_default_field_instances() {
|
|||
'module' => 'text',
|
||||
'settings' => array(),
|
||||
'type' => 'text_default',
|
||||
'weight' => 3,
|
||||
'weight' => 5,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'log',
|
||||
|
@ -1333,6 +1333,40 @@ function farm_livestock_field_default_field_instances() {
|
|||
),
|
||||
);
|
||||
|
||||
// Exported field_instance: 'log-farm_medical-field_farm_vet'.
|
||||
$field_instances['log-farm_medical-field_farm_vet'] = array(
|
||||
'bundle' => 'farm_medical',
|
||||
'default_value' => NULL,
|
||||
'deleted' => 0,
|
||||
'description' => 'If a veterinarian was involved, enter their name here.',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'above',
|
||||
'module' => 'text',
|
||||
'settings' => array(),
|
||||
'type' => 'text_default',
|
||||
'weight' => 12,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'log',
|
||||
'field_name' => 'field_farm_vet',
|
||||
'label' => 'Veterinarian',
|
||||
'required' => 0,
|
||||
'settings' => array(
|
||||
'text_processing' => 0,
|
||||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'active' => 1,
|
||||
'module' => 'text',
|
||||
'settings' => array(
|
||||
'size' => 60,
|
||||
),
|
||||
'type' => 'text_textfield',
|
||||
'weight' => -7,
|
||||
),
|
||||
);
|
||||
|
||||
// Translatables
|
||||
// Included for use with string extractors like potx.
|
||||
t('Add flags to this asset to enable better sorting and filtering of records.');
|
||||
|
@ -1353,6 +1387,7 @@ function farm_livestock_field_default_field_instances() {
|
|||
t('Has this animal been castrated?');
|
||||
t('ID');
|
||||
t('ID Tag(s)');
|
||||
t('If a veterinarian was involved, enter their name here.');
|
||||
t('Inventory adjustments');
|
||||
t('Link this birth log to a mother animal so that you can easily see all birth logs for that animal on their record.');
|
||||
t('List any identification tags that this animal has. These can be ear tags, tattoos, leg bands, etc. Use the fields below to describe the type, location, and ID of each.');
|
||||
|
@ -1375,6 +1410,7 @@ function farm_livestock_field_default_field_instances() {
|
|||
t('Use this field to set the group membership of any asset(s) referenced by this log.');
|
||||
t('Use this to organize your logs into categories for easier searching and filtering later.');
|
||||
t('Use this to set or adjust asset inventory levels along with this log.');
|
||||
t('Veterinarian');
|
||||
t('What animals do this medical log pertain to?');
|
||||
t('What area(s) did this birth take place in?');
|
||||
|
||||
|
|
|
@ -316,8 +316,9 @@ function farm_livestock_field_group_info() {
|
|||
2 => 'field_farm_flags',
|
||||
3 => 'name',
|
||||
4 => 'timestamp',
|
||||
5 => 'group_farm_assignment',
|
||||
6 => 'group_farm_category',
|
||||
5 => 'field_farm_vet',
|
||||
6 => 'group_farm_assignment',
|
||||
7 => 'group_farm_category',
|
||||
),
|
||||
'format_type' => 'field_group_easy_responsive_tabs_nav_item',
|
||||
'format_settings' => array(
|
||||
|
|
|
@ -55,6 +55,7 @@ features[field_base][] = field_farm_animal_tag_location
|
|||
features[field_base][] = field_farm_animal_tag_type
|
||||
features[field_base][] = field_farm_animal_type
|
||||
features[field_base][] = field_farm_mother
|
||||
features[field_base][] = field_farm_vet
|
||||
features[field_group][] = group_farm_assignment|log|farm_birth|form
|
||||
features[field_group][] = group_farm_assignment|log|farm_medical|form
|
||||
features[field_group][] = group_farm_category|log|farm_birth|form
|
||||
|
@ -114,6 +115,7 @@ features[field_instance][] = log-farm_medical-field_farm_log_category
|
|||
features[field_instance][] = log-farm_medical-field_farm_log_owner
|
||||
features[field_instance][] = log-farm_medical-field_farm_movement
|
||||
features[field_instance][] = log-farm_medical-field_farm_notes
|
||||
features[field_instance][] = log-farm_medical-field_farm_vet
|
||||
features[log_type][] = farm_birth
|
||||
features[log_type][] = farm_medical
|
||||
features[taxonomy][] = farm_animal_types
|
||||
|
|
Loading…
Reference in New Issue