sintonia/livesupport/modules/htmlUI/var/formmask/make_relations.php
2005-04-12 13:50:19 +00:00

25 lines
426 B
PHP
Executable file

<?php
/*
this is used to extract relations between label and fieldname from metadataform.
*/
include ('metadata.inc.php');
function flat($in)
{
global $ret;
foreach ($in as $key=>$val) {
if (is_array($val)) {
flat($val);
} else {
if ($key==='label')
echo "'".$in['element']."' => '".$in['label']."',<br>";
}
}
}
#print_r($mask);
flat($mask);
?>