4th choice of "display style: PHP filter" could solve internationalization need
GiorgosK - June 1, 2008 - 23:09
| Project: | Legal |
| Version: | 5.x-1.3 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Description
I have changed the 2nd and 3rd choices in legal.module
case 1: // scroll box (CSS)
case 2: // HTML
from
'#value' => filter_xss_admin($form['conditions']['#value']),to
'#value' => drupal_eval($form['conditions']['#value']),in 3 places (lines 90, 143 and 244) in order to accept PHP code
and then inside the "Terms and Conditions" box I inserted
<?php
global $locale;
if ("el" == $locale) {
$node = node_load(196, FALSE, TRUE);
}else if("en" == $locale){
$node = node_load(195, FALSE, TRUE);
}
echo $node->body;
?>where 196 is the node id for the terms and conditions in Greek (el) and 195 is the English version
This loads the correct terms and conditions for the specific language
It would be nice to be integrated in legal
