You are here

public function FrxControls::drupal_text_format in Forena Reports 7.2

Same name and namespace in other branches
  1. 7.3 plugins/FrxControls.inc \FrxControls::drupal_text_format()
  2. 7.4 plugins/FrxControls.inc \FrxControls::drupal_text_format()

File

plugins/FrxControls.inc, line 53
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);
}