You are here

function og_ui_field_formatter_view in Organic groups 7

Same name and namespace in other branches
  1. 7.2 og_ui/og_ui.module \og_ui_field_formatter_view()

Implements hook_field_formatter_view().

File

og_ui/og_ui.module, line 253
Organic groups UI.

Code

function og_ui_field_formatter_view($entity_type, $entity, $field, $instance, $langcode, $items, $display) {
  $element = array();
  if ($field['field_name'] == OG_GROUP_FIELD && ($links = og_ui_subscribe_link($entity_type, $entity))) {
    $element[0] = $links;
  }
  return $element;
}