You are here

function vertical_tabs_update_6104 in Vertical Tabs 6

Delete the node type fieldset configurations.

File

./vertical_tabs.install, line 77
Install, update and uninstall functions for the vertical_tabs module.

Code

function vertical_tabs_update_6104() {
  $config = variable_get('vertical_tabs_forms', array());
  $node_types = array_keys(node_get_types('names'));
  foreach ($node_types as $node_type) {
    $node_type_setting = 'vertical_tabs_fieldsets_' . $node_type;
    if (!variable_get($node_type_setting, array())) {
      $config[$node_type . '_node_form'] = FALSE;
    }
    variable_del($node_type_setting);
  }
  variable_set('vertical_tabs_forms', $config);
  return array();
}