Support comments for input fields
authorJoey Schulze <joey@infodrom.org>
Sun, 28 Feb 2010 12:49:00 +0000 (13:49 +0100)
committerJoey Schulze <joey@infodrom.org>
Sun, 28 Feb 2010 12:49:00 +0000 (13:49 +0100)
lib/mask.php

index 72d3b67..12a2d38 100644 (file)
@@ -48,6 +48,8 @@ function build_form($name, $fields)
     } elseif ($info['type'] == 'date') {
       error_log('type = date');
     }
+    if (array_key_exists('comment',$info))
+      $ret[] = sprintf('<span class="comment">%s</span>', $info['comment']);
     $ret[] = '<br>';
   }