Generate_lang_file : Added support of LSformElement_valueWithUnit's units configuration

This commit is contained in:
Benjamin Renard 2011-03-24 15:47:40 +01:00
parent a3fdebd362
commit 88221346a5

View file

@ -106,6 +106,13 @@ if (loadDir('../'.LS_OBJECTS_DIR)) {
} }
} }
// LSattr_html_valueWithUnit
if ($attr['html_type']=='valueWithUnit' && is_array($attr['html_options']['units'])) {
foreach($attr['html_options']['units'] as $pname) {
add($pname);
}
}
// Check data // Check data
if (is_array($attr['check_data'])) { if (is_array($attr['check_data'])) {
foreach($attr['check_data'] as $check) { foreach($attr['check_data'] as $check) {