multipage_form_example_elements
developer/examples/multipage_form_example.module, строка 456
- Версии
- 5 – 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
Код
<?php
function multipage_form_example_elements() {
$type['hidden_array'] = array('#input' => TRUE, '#process' => array('expand_hidden_array' => array()), '#tree' => TRUE);
return $type;
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии