Replace Animal Description field with plain Description field (from farm_fields).
This commit is contained in:
parent
f80e154a54
commit
e1f1d9dc53
|
@ -10,25 +10,6 @@
|
|||
function farm_livestock_field_default_field_bases() {
|
||||
$field_bases = array();
|
||||
|
||||
// Exported field_base: 'field_farm_animal_description'
|
||||
$field_bases['field_farm_animal_description'] = array(
|
||||
'active' => 1,
|
||||
'cardinality' => 1,
|
||||
'deleted' => 0,
|
||||
'entity_types' => array(),
|
||||
'field_name' => 'field_farm_animal_description',
|
||||
'indexes' => array(
|
||||
'format' => array(
|
||||
0 => 'format',
|
||||
),
|
||||
),
|
||||
'locked' => 0,
|
||||
'module' => 'text',
|
||||
'settings' => array(),
|
||||
'translatable' => 0,
|
||||
'type' => 'text_long',
|
||||
);
|
||||
|
||||
// Exported field_base: 'field_farm_animal_group'
|
||||
$field_bases['field_farm_animal_group'] = array(
|
||||
'active' => 1,
|
||||
|
|
|
@ -10,40 +10,6 @@
|
|||
function farm_livestock_field_default_field_instances() {
|
||||
$field_instances = array();
|
||||
|
||||
// Exported field_instance: 'farm_asset-animal-field_farm_animal_description'
|
||||
$field_instances['farm_asset-animal-field_farm_animal_description'] = array(
|
||||
'bundle' => 'animal',
|
||||
'default_value' => NULL,
|
||||
'deleted' => 0,
|
||||
'description' => '',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'above',
|
||||
'module' => 'text',
|
||||
'settings' => array(),
|
||||
'type' => 'text_default',
|
||||
'weight' => 7,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'farm_asset',
|
||||
'field_name' => 'field_farm_animal_description',
|
||||
'label' => 'Description',
|
||||
'required' => 0,
|
||||
'settings' => array(
|
||||
'text_processing' => 0,
|
||||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'active' => 1,
|
||||
'module' => 'text',
|
||||
'settings' => array(
|
||||
'rows' => 5,
|
||||
),
|
||||
'type' => 'text_textarea',
|
||||
'weight' => 8,
|
||||
),
|
||||
);
|
||||
|
||||
// Exported field_instance: 'farm_asset-animal-field_farm_animal_group'
|
||||
$field_instances['farm_asset-animal-field_farm_animal_group'] = array(
|
||||
'bundle' => 'animal',
|
||||
|
@ -296,6 +262,40 @@ function farm_livestock_field_default_field_instances() {
|
|||
),
|
||||
);
|
||||
|
||||
// Exported field_instance: 'farm_asset-animal-field_farm_description'
|
||||
$field_instances['farm_asset-animal-field_farm_description'] = array(
|
||||
'bundle' => 'animal',
|
||||
'default_value' => NULL,
|
||||
'deleted' => 0,
|
||||
'description' => '',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'above',
|
||||
'module' => 'text',
|
||||
'settings' => array(),
|
||||
'type' => 'text_default',
|
||||
'weight' => 7,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'farm_asset',
|
||||
'field_name' => 'field_farm_description',
|
||||
'label' => 'Description',
|
||||
'required' => 0,
|
||||
'settings' => array(
|
||||
'text_processing' => 0,
|
||||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'active' => 1,
|
||||
'module' => 'text',
|
||||
'settings' => array(
|
||||
'rows' => 5,
|
||||
),
|
||||
'type' => 'text_textarea',
|
||||
'weight' => 8,
|
||||
),
|
||||
);
|
||||
|
||||
// Exported field_instance: 'farm_asset-animal-field_farm_files'
|
||||
$field_instances['farm_asset-animal-field_farm_files'] = array(
|
||||
'bundle' => 'animal',
|
||||
|
|
|
@ -28,7 +28,6 @@ features[ctools][] = strongarm:strongarm:1
|
|||
features[ctools][] = views:views_default:3.0
|
||||
features[farm_asset_type][] = animal
|
||||
features[features_api][] = api:2
|
||||
features[field_base][] = field_farm_animal_description
|
||||
features[field_base][] = field_farm_animal_group
|
||||
features[field_base][] = field_farm_animal_nicknames
|
||||
features[field_base][] = field_farm_animal_parents
|
||||
|
@ -38,7 +37,6 @@ features[field_base][] = field_farm_animal_tag_id
|
|||
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_instance][] = farm_asset-animal-field_farm_animal_description
|
||||
features[field_instance][] = farm_asset-animal-field_farm_animal_group
|
||||
features[field_instance][] = farm_asset-animal-field_farm_animal_nicknames
|
||||
features[field_instance][] = farm_asset-animal-field_farm_animal_parents
|
||||
|
@ -46,6 +44,7 @@ features[field_instance][] = farm_asset-animal-field_farm_animal_sex
|
|||
features[field_instance][] = farm_asset-animal-field_farm_animal_tag
|
||||
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_description
|
||||
features[field_instance][] = farm_asset-animal-field_farm_files
|
||||
features[field_instance][] = farm_asset-animal-field_farm_images
|
||||
features[field_instance][] = field_collection_item-field_farm_animal_tag-field_farm_animal_tag_id
|
||||
|
|
Loading…
Reference in New Issue