You are here

function og_ui_field_create_instance in Organic groups 7.2

Implements hook_field_create_instance().

Invalidate the menu when an instance is inserted, to add it to the roles / premissions menus.

See also

og_ui_menu()

File

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

Code

function og_ui_field_create_instance($instance) {
  if ($instance['field_name'] != OG_GROUP_FIELD) {
    return;
  }
  variable_set('menu_rebuild_needed', TRUE);
}