3
0
Fork 0
mirror of https://github.com/farmOS/farmOS.git synced 2024-02-23 11:37:38 +01:00

Use Colorbox for Animal images field.

This commit is contained in:
Michael Stenta 2015-03-21 11:10:28 -04:00
parent 3b9fde8965
commit dd1d48228a
2 changed files with 21 additions and 14 deletions

View file

@ -48,7 +48,7 @@ function farm_livestock_field_default_fields() {
'module' => 'text',
'settings' => array(),
'type' => 'text_default',
'weight' => '8',
'weight' => '7',
),
),
'entity_type' => 'farm_asset',
@ -116,7 +116,7 @@ function farm_livestock_field_default_fields() {
'module' => 'taxonomy',
'settings' => array(),
'type' => 'taxonomy_term_reference_plain',
'weight' => '2',
'weight' => '1',
),
),
'entity_type' => 'farm_asset',
@ -179,7 +179,7 @@ function farm_livestock_field_default_fields() {
'module' => 'text',
'settings' => array(),
'type' => 'text_default',
'weight' => '1',
'weight' => '0',
),
),
'entity_type' => 'farm_asset',
@ -258,7 +258,7 @@ function farm_livestock_field_default_fields() {
'link' => FALSE,
),
'type' => 'entityreference_label',
'weight' => '7',
'weight' => '6',
),
),
'entity_type' => 'farm_asset',
@ -319,7 +319,7 @@ function farm_livestock_field_default_fields() {
'module' => 'list',
'settings' => array(),
'type' => 'list_default',
'weight' => '5',
'weight' => '4',
),
),
'entity_type' => 'farm_asset',
@ -375,7 +375,7 @@ function farm_livestock_field_default_fields() {
'view_mode' => 'full',
),
'type' => 'field_collection_fields',
'weight' => '3',
'weight' => '2',
),
),
'entity_type' => 'farm_asset',
@ -440,7 +440,7 @@ function farm_livestock_field_default_fields() {
'module' => 'taxonomy',
'settings' => array(),
'type' => 'taxonomy_term_reference_link',
'weight' => '4',
'weight' => '3',
),
),
'entity_type' => 'farm_asset',
@ -511,7 +511,7 @@ function farm_livestock_field_default_fields() {
'show_repeat_rule' => 'show',
),
'type' => 'date_default',
'weight' => '6',
'weight' => '5',
),
),
'entity_type' => 'farm_asset',
@ -579,14 +579,20 @@ function farm_livestock_field_default_fields() {
'description' => '',
'display' => array(
'default' => array(
'label' => 'hidden',
'module' => 'image',
'label' => 'above',
'module' => 'colorbox',
'settings' => array(
'image_link' => 'file',
'image_style' => 'large',
'colorbox_caption' => 'auto',
'colorbox_caption_custom' => '',
'colorbox_gallery' => 'post',
'colorbox_gallery_custom' => '',
'colorbox_image_style' => '',
'colorbox_multivalue_index' => NULL,
'colorbox_node_style' => 'thumbnail',
'colorbox_node_style_first' => 'large',
),
'type' => 'image',
'weight' => '0',
'type' => 'colorbox',
'weight' => '8',
),
),
'entity_type' => 'farm_asset',

View file

@ -2,6 +2,7 @@ name = Farm Livestock
description = Features for managing farm livestock.
core = 7.x
package = Farm
dependencies[] = colorbox
dependencies[] = ctools
dependencies[] = date
dependencies[] = entity