public function FrxControls::drupal_translation in Forena Reports 7.3
Same name and namespace in other branches
- 6.2 plugins/FrxControls.inc \FrxControls::drupal_translation()
- 6 plugins/FrxControls.inc \FrxControls::drupal_translation()
- 7.2 plugins/FrxControls.inc \FrxControls::drupal_translation()
- 7.4 plugins/FrxControls.inc \FrxControls::drupal_translation()
File
- plugins/
FrxControls.inc, line 39 - 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);
}