You are here

function multiform_test2_2 in Multiple forms 7

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

Build multiform_test2_2 form.

_state

Parameters

type $form:

Return value

array

1 string reference to 'multiform_test2_2'
multiform_test_menu in tests/multiform_test.module
Implementation of hook_menu().

File

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

Code

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