function _forena_render_form_template in Forena Reports 7.4
Same name and namespace in other branches
- 7.5 forena.common.inc \_forena_render_form_template()
- 7.3 forena.common.inc \_forena_render_form_template()
1 call to _forena_render_form_template()
File
- ./
forena.common.inc, line 384 - Common functions used throughout the project but loaded in this file to keep the module file lean.
Code
function _forena_render_form_template($fields, $template) {
static $teng = '';
if (!$teng) {
$teng = new FrxSyntaxEngine(FRX_TOKEN_EXP, '{}');
}
$teng->htmlencode = FALSE;
$o = Frx::Data()
->push($fields, 'form-fields');
$build = $teng
->replace($template, TRUE);
$o = Frx::Data()
->pop();
return $build;
}