You are here

function form_builder_cache_save in Form Builder 7

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

Save a form builder cache based on the form structure.

Deprecated

Use FormBuilderFormBase::save() instead.

See also

FormBuilderFormBase::save()

File

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

Code

function form_builder_cache_save($form_type, $form_id, $form, $sid = NULL) {
  $form = FormBuilderLoader::instance()
    ->getForm($form_type, $form_id, $sid, $form);
  return $form
    ->save();
}