function _forena_set_inline_theme in Forena Reports 7.5
Same name and namespace in other branches
- 7.3 forena.common.inc \_forena_set_inline_theme()
- 7.4 forena.common.inc \_forena_set_inline_theme()
2 calls to _forena_set_inline_theme()
- forena_parameter_form in ./
forena.module - theme_forena_inline_form in ./
forena.common.inc - Render a special form with an embedded forena report.
File
- ./
forena.common.inc, line 390 - Common functions used throughout the project but loaded in this file to keep the module file lean.
Code
function _forena_set_inline_theme(&$elements) {
foreach ($elements as $key => $value) {
if (strpos($key, '#') === FALSE) {
$type = @$value['#type'];
// Set theme functions for specific types to be inline forms.
switch ($type) {
case 'fieldset':
case NULL:
case 'submit':
case '':
break;
default:
$elements[$key]['#theme_wrappers'] = array(
'forena_inline_form_element',
);
}
}
}
}