function _form_test_vertical_tabs_form in Drupal 7
Tests functionality of vertical tabs.
1 string reference to '_form_test_vertical_tabs_form'
- form_test_menu in modules/
simpletest/ tests/ form_test.module - Implements hook_menu().
File
- modules/
simpletest/ tests/ form_test.module, line 707 - Helper module for the form API tests.
Code
function _form_test_vertical_tabs_form($form, &$form_state) {
$form['vertical_tabs'] = array(
'#type' => 'vertical_tabs',
);
$form['tab1'] = array(
'#type' => 'fieldset',
'#title' => t('Tab 1'),
'#collapsible' => TRUE,
'#group' => 'vertical_tabs',
);
$form['tab1']['field1'] = array(
'#title' => t('Field 1'),
'#type' => 'textfield',
);
$form['tab2'] = array(
'#type' => 'fieldset',
'#title' => t('Tab 2'),
'#collapsible' => TRUE,
'#group' => 'vertical_tabs',
);
$form['tab2']['field2'] = array(
'#title' => t('Field 2'),
'#type' => 'textfield',
);
return $form;
}