You are here

function vertical_tabs_remove_vertical_tabs in Vertical Tabs 6

Remove vertical tabs elements and processing from a form.

1 call to vertical_tabs_remove_vertical_tabs()
vertical_tabs_form_alter in ./vertical_tabs.module
Implements hook_form_alter().

File

./vertical_tabs.module, line 451
Provides vertical tabs capability for fieldsets in forms.

Code

function vertical_tabs_remove_vertical_tabs(&$form) {
  unset($form['#vertical_tabs']);
  if (isset($form['vertical_tabs']['#vertical_tabs_settings'])) {
    unset($form['vertical_tabs']);
  }
  if (isset($form['#pre_render'])) {
    $form['#pre_render'] = array_diff($form['#pre_render'], array(
      'vertical_tabs_form_pre_render',
    ));
  }
}