multipage_form_example_elements

Versions
4.7 – 6
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

Code

developer/examples/multipage_form_example.module, line 456

<?php
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
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.