You are here

function subform_example_batch_subform in Subform 7

Form builder; Batch subform.

1 string reference to 'subform_example_batch_subform'
subform_example_batch_wrapperform in ./subform_example.module
Form builder; Batch wrapper form.

File

./subform_example.module, line 393

Code

function subform_example_batch_subform($form, &$form_state) {
  $form['foo'] = array(
    '#type' => 'textfield',
    '#title' => t('Foo (subform)'),
  );
  $form['actions'] = array(
    '#type' => 'actions',
  );
  $form['actions']['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Submit subform'),
    '#weight' => 40,
  );
  $form['#submit'][] = 'subform_example_batch_subform_submit';
  $form['#submit'][] = 'subform_example_batch_subform_submit2';
  return $form;
}