You are here

function phone_link_field_formatter_view in Phone link 7

Implements hook_field_formatter_view().

File

./phone_link.module, line 84

Code

function phone_link_field_formatter_view($entity_type, $entity, $field, $instance, $langcode, $items, $display) {
  $elements = array();
  $settings = $display['settings'];
  foreach ($items as $delta => $item) {
    $elements[$delta]['#markup'] = phone_link_view($item, $settings);
  }
  return $elements;
}