function civicrm_entity_discount_field_field_formatter_view in CiviCRM Entity 7.2
Implements hook_field_formatter_view().
File
- modules/
civicrm_entity_discount/ civicrm_entity_discount_field.module, line 452 - Provide CiviCRM Entity Discount Field Type. Provides a widget for selecting custom discount options
Code
function civicrm_entity_discount_field_field_formatter_view($entity_type, $entity, $field, $instance, $langcode, $items, $display) {
$element = array();
$settings = $display['settings'];
switch ($display['type']) {
case 'civicrm_entity_discount_field_default_formatter':
foreach ($items as $delta => $item) {
$markup = '';
$element[$delta] = array(
'#markup' => $markup,
);
}
break;
}
return $element;
}