You are here

function multiform_test2_1 in Multiple forms 7.2

Same name and namespace in other branches
  1. 7 tests/multiform_test.module \multiform_test2_1()

Build multiform_test2_1 form.

_state

Parameters

type $form:

Return value

array

1 string reference to 'multiform_test2_1'
multiform_test2_callback in tests/multiform_test.module
Callback for Test 2

File

tests/multiform_test.module, line 211
@author Kálmán Hosszu - http://drupal.org/user/267481

Code

function multiform_test2_1($form, $form_state) {
  $form['required_text_1'] = array(
    '#type' => 'textfield',
    '#title' => 'test1',
    '#required' => TRUE,
  );
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => 'save',
    '#submit' => array(
      'multiform_test2_submit_button',
    ),
  );
  return $form;
}