You are here

function relation_endpoint_field_formatter_info in Relation 7

Implements hook_field_formatter_info().

File

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

Code

function relation_endpoint_field_formatter_info() {
  $info = array(
    'relation_endpoint' => array(
      'label' => t('Endpoints table'),
      'field types' => array(
        'relation_endpoint',
      ),
    ),
    'relation_endpoint_full' => array(
      'label' => t('Full entities list'),
      'field types' => array(
        'relation_endpoint',
      ),
    ),
  );
  foreach (entity_get_info() as $entity_type => $data) {
    $info['relation_endpoint_full']['settings']['view_modes'][$entity_type] = 'default';
    $info['relation_endpoint']['settings']['view_modes'][$entity_type] = 'default';
  }
  return $info;
}