function forena_format_data in Forena Reports 6
Same name and namespace in other branches
- 7 forena.common.inc \forena_format_data()
1 call to forena_format_data()
File
- ./
forena.common.inc, line 440 - Common functions used throughout the project but loaded in this file to keep the module file lean.
Code
function forena_format_data($value, $format, $format_str, $teng) {
$fo = forena_get_formatter($format);
if ($fo) {
$ret = $fo
->{$format}($value, $format_str, $teng);
}
else {
$ret = $value;
}
return $ret;
}