You are here

function form_builder_cache_load in Form Builder 7

Same name and namespace in other branches
  1. 6 includes/form_builder.cache.inc \form_builder_cache_load()

Load a form configuration cache.

Deprecated

Use FormBuilderLoader::fromCache() instead.

See also

FormBuilderLoader::fromCache()

File

includes/form_builder.cache.inc, line 15
form_builder.cache.inc Functions for temporary storage of form builder structures while editing.

Code

function form_builder_cache_load($form_type, $form_id, $sid = NULL, $reset = FALSE) {
  $form = FormBuilderLoader::instance()
    ->fromCache($form_type, $form_id, $sid, $reset);
  return $form ? $form
    ->getFormArray() : FALSE;
}