You are here

public function FormBuilderFormBase::unserialize in Form Builder 7

Unserialize a stored version of this form.

File

./form_builder.classes.inc, line 409

Class

FormBuilderFormBase

Code

public function unserialize($data) {
  $data = unserialize($data);
  $this->formType = $data['formType'];
  $this->formId = $data['formId'];
  $this->sid = $data['sid'];
  $this->params = $data['params'];
  $this->form = $data['form'];
  $this->properties = array();
  $this->elementArrays[FORM_BUILDER_ROOT] =& $this->form;
  $this
    ->addDefaults($this->form);
  $this
    ->indexElements($this->form);
}