You are here

function registration_field_update_instance in Entity Registration 7

Same name and namespace in other branches
  1. 8.2 includes/registration.field.inc \registration_field_update_instance()
  2. 7.2 includes/registration.field.inc \registration_field_update_instance()

Implements hook_field_update_instance().

Rebuild the menu if the registration tab setting has changed.

File

includes/registration.field.inc, line 431
Field hooks.

Code

function registration_field_update_instance($instance, $prior_instance) {
  $prev = isset($prior_instance['settings']['hide_register_tab']) ? $prior_instance['settings']['hide_register_tab'] : NULL;
  $cur = isset($instance['settings']['hide_register_tab']) ? $instance['settings']['hide_register_tab'] : NULL;
  if ($prev != $cur) {
    _registration_menu_rebuild($instance);
  }
}