You are here

public function FormBuilderFormBase::serialize in Form Builder 7

Serialize the form.

NOTE: This should only be used for short-term storage.

File

./form_builder.classes.inc, line 395

Class

FormBuilderFormBase

Code

public function serialize() {
  return serialize(array(
    'formType' => $this->formType,
    'formId' => $this->formId,
    'sid' => $this->sid,
    'params' => $this->params,
    'form' => $this->form,
  ));
}