You are here

function og_ui_og_fields_info_alter in Organic groups 7.2

Same name and namespace in other branches
  1. 7 og_ui/og_ui.module \og_ui_og_fields_info_alter()

Implements hook_og_fields_info_alter().

Change the default formatter of the group field.

File

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

Code

function og_ui_og_fields_info_alter(&$items) {
  $items[OG_GROUP_FIELD]['instance']['display']['default']['type'] = 'og_group_subscribe';
  $items[OG_AUDIENCE_FIELD]['instance']['display']['default']['type'] = 'og_list_default';
}