function forena_supported_formats in Forena Reports 6
Same name and namespace in other branches
- 7 forena.common.inc \forena_supported_formats()
1 call to forena_supported_formats()
- forena_fields_format_autocomplete in ./
forena.module - Auto complete for formats
File
- ./
forena.common.inc, line 832 - Common functions used throughout the project but loaded in this file to keep the module file lean.
Code
function forena_supported_formats() {
$controls = forena_define_controls();
$supported_formats = array();
$f = array();
foreach ($controls as $k => $r) {
$provider = $r;
if ($provider && method_exists($provider, 'formats')) {
$f = $provider
->formats();
$supported_formats = array_merge($supported_formats, $f);
}
}
return $supported_formats;
}