You are here

function registration_update_7107 in Entity Registration 8

Same name and namespace in other branches
  1. 7.2 registration.install \registration_update_7107()
  2. 7 registration.install \registration_update_7107()

Set default configuration for "register tab" display.

File

./registration.install, line 585
Schema and installation hooks for registration module.

Code

function registration_update_7107() {
  foreach (registration_get_registration_instances() as $instance) {
    if (!isset($instance['settings']['register_tab'])) {
      $instance['settings']['register_tab'] = 1;
      $instance
        ->save();
    }
  }
}