function theme_forena_fieldset_template in Forena Reports 7.4
Same name and namespace in other branches
- 7.5 forena.common.inc \theme_forena_fieldset_template()
- 7.3 forena.common.inc \theme_forena_fieldset_template()
File
- ./
forena.common.inc, line 483 - Common functions used throughout the project but loaded in this file to keep the module file lean.
Code
function theme_forena_fieldset_template(&$variables) {
$element = $variables['fieldset'];
element_set_attributes($element, array(
'id',
));
_form_set_class($element, array(
'form-wrapper',
));
$output = '';
$fields = array();
foreach ($element as $key => $value) {
if (strpos($key, '#') === FALSE) {
$fields[$key] = drupal_render($value);
}
}
$output .= _forena_render_form_template($fields, $element['#forena-template']);
if (isset($element['#value'])) {
$output .= $element['#value'];
}
return $output;
}