You are here

function vertical_tabs_fieldgroup_form in Vertical Tabs 6

Implements hook_fieldgroup_form().

Apply group value to CCK fieldsets with the 'vertical tab' form display.

File

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

Code

function vertical_tabs_fieldgroup_form(&$form, $form_state, $form_id, $group) {
  if (in_array($group['settings']['form']['style'], array(
    'fieldset_vertical_tab',
  ))) {
    $form[$group['group_name']]['#group'] = 'additional_settings';
  }
}