public function FormBuilderFormBase::unserialize in Form Builder 7
Unserialize a stored version of this form.
File
- ./
form_builder.classes.inc, line 409
Class
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);
}