function form_example_wizard_personal_info

Returns form elements for the 'personal info' page of the wizard.

This is the first step of the wizard, asking for two textfields: first name and last name.

Related topics

1 string reference to 'form_example_wizard_personal_info'
_form_example_steps in form_example/form_example_wizard.inc
Returns the list of steps and their associated forms.

File

form_example/form_example_wizard.inc, line 218

Code

function form_example_wizard_personal_info($form, &$form_state) {
    $form = array();
    $form['first_name'] = array(
        '#type' => 'textfield',
        '#title' => t('First Name'),
        '#default_value' => !empty($form_state['values']['first_name']) ? $form_state['values']['first_name'] : '',
    );
    $form['last_name'] = array(
        '#type' => 'textfield',
        '#title' => t('Last Name'),
        '#default_value' => !empty($form_state['values']['last_name']) ? $form_state['values']['last_name'] : '',
    );
    return $form;
}