You are here

public static function FormBuilderFormBase::load in Form Builder 7

File

./form_builder.classes.inc, line 364

Class

FormBuilderFormBase

Code

public static function load($form_type, $form_id, $sid, $params) {
  ctools_include('object-cache');
  $obj = "{$form_type}:{$form_id}";
  $form = ctools_object_cache_get($obj, self::CACHE_NAME, FALSE, $sid);
  if ($form && is_array($form)) {
    $form = new static($form_type, $form_id, $sid, $params, $form);
  }
  return $form;
}