You are here

function relation_endpoint_field_formatter_settings_summary in Relation 7

Implements hook_field_formatter_settings_summary().

File

./relation_endpoint.module, line 235
Relation endpoints field.

Code

function relation_endpoint_field_formatter_settings_summary($field, $instance, $view_mode) {
  $view_modes_settings = $instance['display'][$view_mode]['settings']['view_modes'];
  foreach (_relation_endpoint_get_endpoint_entity_types($instance) as $endpoint_entity_type => $v) {
    $items[] = "{$endpoint_entity_type}: " . $view_modes_settings[$endpoint_entity_type];
  }
  return theme('item_list', array(
    'items' => $items,
  ));
}