function multiform_test2_1 in Multiple forms 7
Same name and namespace in other branches
- 7.2 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_test_menu in tests/
multiform_test.module - Implementation of hook_menu().
File
- tests/
multiform_test.module, line 124 - @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;
}