fixed showroom location formatter and contentype display

remains css
This commit is contained in:
Bachir Soussi Chiadmi
2016-12-10 19:27:00 +01:00
parent 16d8adc672
commit 5f6a9ac5d1
8 changed files with 77 additions and 74 deletions

View File

@@ -86,7 +86,7 @@ function materio_showroom_field_formatter_info() {
// This formatter just displays the hex value in the color indicated.
'materio_showroom_location_simple_text' => array(
'label' => t('Simple text-based formatter'),
'field types' => array('field_example_rgb'),
'field types' => array('field_materio_showroom_location'),
),
// This formatter changes the background color of the content region.
// 'field_example_color_background' => array(
@@ -112,7 +112,7 @@ function materio_showroom_field_formatter_view($entity_type, $entity, $field, $i
$element = array();
switch ($display['type']) {
// This formatter simply outputs the field as text and with a color.
// This formatter simply outputs the field as text.
case 'materio_showroom_location_simple_text':
foreach ($items as $delta => $item) {
$term = taxonomy_term_load($item['showroom_tid']);