function forena_supported_templates in Forena Reports 6
Same name and namespace in other branches
- 7 forena.common.inc \forena_supported_templates()
Return value
returns an array of supported templates
1 call to forena_supported_templates()
- forena_data_block_form in ./
forena.admin.inc - A form to preview and add data blocks to an existing report
File
- ./
forena.common.inc, line 819 - Common functions used throughout the project but loaded in this file to keep the module file lean.
Code
function forena_supported_templates() {
$controls = forena_define_controls();
$supported_templates = array();
foreach ($controls as $k => $r) {
$provider = $r;
if ($provider && method_exists($provider, 'templates')) {
$f = $provider
->templates();
$supported_templates = array_merge($supported_templates, $f);
}
}
return $supported_templates;
}