You are here

public function FormBuilderLoader::fromStorage in Form Builder 7

Load a form from storage.

File

./form_builder.classes.inc, line 138

Class

FormBuilderLoader
This class is a wrapper around all the hooks used for getting pluigns.

Code

public function fromStorage($form_type, $form_id, $sid = NULL) {
  if (!isset($this->formTypeInfo[$form_type])) {
    return FALSE;
  }
  $info = $this->formTypeInfo[$form_type];
  $class = $info['class'];
  return $class::loadFromStorage($form_type, $form_id, $sid, $info);
}