You are here

function _forena_render_form_template in Forena Reports 7.3

Same name and namespace in other branches
  1. 7.5 forena.common.inc \_forena_render_form_template()
  2. 7.4 forena.common.inc \_forena_render_form_template()
1 call to _forena_render_form_template()
theme_forena_fieldset_template in ./forena.common.inc

File

./forena.common.inc, line 467
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, '{}');
  }
  $o = Frx::Data()
    ->push($fields, 'form-fields');
  $build = $teng
    ->replace($template, TRUE);
  $o = Frx::Data()
    ->pop();
  return $build;
}