function theme_forena_inline_form in Forena Reports 7.3
Same name and namespace in other branches
- 7.5 forena.common.inc \theme_forena_inline_form()
- 7.4 forena.common.inc \theme_forena_inline_form()
Render a special form with an embedded forena report.
Parameters
unknown_type $variables:
File
- ./
forena.common.inc, line 445 - Common functions used throughout the project but loaded in this file to keep the module file lean.
Code
function theme_forena_inline_form($variables) {
$form = $variables['form'];
$build = '';
$output = '';
$fields = array();
$template = @$form['#forena_form_template'];
// Convert interior elements into inline fields
if ($template) {
_forena_set_inline_theme($form, $template);
// Render the inline fields and store them into the array.
$build = _forena_render_inline_elements($form, $fields, $template);
$build .= $fields['form_build_id'] . $fields['form_token'] . $fields['form_id'];
}
else {
$build = $form['#children'];
}
// Return the form
return $build;
}