public function FrxControls::drupal_translation in Forena Reports 6.2
Same name and namespace in other branches
- 6 plugins/FrxControls.inc \FrxControls::drupal_translation()
- 7.2 plugins/FrxControls.inc \FrxControls::drupal_translation()
- 7.3 plugins/FrxControls.inc \FrxControls::drupal_translation()
- 7.4 plugins/FrxControls.inc \FrxControls::drupal_translation()
File
- plugins/
FrxControls.inc, line 40 - 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_translation($value, $format_str, $teng) {
$field = '';
if ($format_str) {
$field = '{' . $format_str . '}';
}
$field = $teng
->replace($field, null, TRUE);
$vars = array();
if ($field) {
$vars = (array) @unserialize($field);
}
return t($value, $vars);
}