multipage_form_example_elements

5 multipage_form_example.module multipage_form_example_elements()

Playing around here with a new form element to enable storing hidden values in an array fashion. Seems to work fine. Check out $form['test_hidden_array'] above for how to structure the form element

File

developer/examples/multipage_form_example.module, line 456

Code

function multipage_form_example_elements() {
  $type['hidden_array'] = array(
    '#input' => TRUE,
    '#process' => array('expand_hidden_array' => array()),
    '#tree' => TRUE,
  );
  return $type;
}
Login or register to post comments