public function FrxControls::drupal_text_format in Forena Reports 7.3
Same name and namespace in other branches
- 7.2 plugins/FrxControls.inc \FrxControls::drupal_text_format()
- 7.4 plugins/FrxControls.inc \FrxControls::drupal_text_format()
File
- plugins/
FrxControls.inc, line 51 - contains various methods for extending report formating, layout, transformation and design.
Class
- FrxControls
- @file contains various methods for extending report formating, layout, transformation and design.
Code
public function drupal_text_format($value, $format_str, $teng) {
$field = '';
if ($format_str) {
$field = $format_str;
}
$field = $teng
->replace($field, NULL, TRUE);
if ($field) {
$format = $field;
}
else {
$format = filter_default_format();
}
return check_markup(html_entity_decode($value, ENT_QUOTES, 'UTF-8'), $format);
}