You are here

function multiform_init_form in Multiple forms 7.2

Inititalize multiform form base structure.

1 call to multiform_init_form()
multiform_get_form in ./multiform.module
Returns a form containing a number of other forms.

File

./multiform.inc, line 41

Code

function multiform_init_form(&$build_id_hash) {
  $form = element_info('form');
  $form['#id'] = 'multiform';
  $build_id_hash = md5(uniqid(mt_rand(), TRUE));
  $multiform_build_id = 'multiform_settings-' . $build_id_hash;
  $form['multiform_settings_build_id'] = array(
    '#type' => 'hidden',
    '#value' => $multiform_build_id,
    '#id' => $multiform_build_id,
    '#name' => 'multiform_settings_build_id',
    '#attributes' => array(),
  );
  return $form;
}