$ret[] = sprintf('<input type="hidden" id="edit_source" name="source" value="%s">', $name);
foreach ($mask['edit'] as $id => $info) {
- if ($info['type'] == 'text' || $info['type'] == 'passwd' ||
+ if ($info['type'] == 'hidden') {
+ $ret[] = sprintf('<input type="hidden" id="edit_%s" name="%s">', $id, $id);
+ } else if ($info['type'] == 'text' || $info['type'] == 'passwd' ||
$info['type'] == 'decimal' || $info['type'] == 'number') {
$v = array('id="edit_'.$id.'"',
'name="'.$id.'"');
}
if (array_key_exists('comment',$info))
$ret[] = sprintf('<span class="comment">%s</span>', $info['comment']);
- $ret[] = '<br>';
+ if ($info['type'] != 'hidden')
+ $ret[] = '<br>';
}
$ret[] = '<span id="form_status"> </span>';