public function FormBuilderLoader::getForm in Form Builder 7
Get a form object.
File
- ./
form_builder.classes.inc, line 126
Class
- FormBuilderLoader
- This class is a wrapper around all the hooks used for getting pluigns.
Code
public function getForm($form_type, $form_id, $sid, $form = array()) {
if (!isset($this->formTypeInfo[$form_type])) {
return FALSE;
}
$info = $this->formTypeInfo[$form_type];
$class = $info['class'];
return new $class($form_type, $form_id, $sid, $info, $form);
}