You are here

function og_ui_field_delete_instance in Organic groups 7.2

Implements hook_field_delete_instance().

Invalidate the menu when an instance is deleted, to remove it from the roles / premissions menus.

See also

og_ui_menu()

File

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

Code

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