From a340b7155923f1db637eb3332d8c47d924761acd Mon Sep 17 00:00:00 2001 From: Joey Schulze Date: Sat, 27 Feb 2010 23:17:08 +0100 Subject: [PATCH] Support controls such as checkboxes --- lib/mask.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/mask.php b/lib/mask.php index 0325e7a..588b2a9 100644 --- a/lib/mask.php +++ b/lib/mask.php @@ -95,6 +95,7 @@ function build_grid($name, $mask) if ($data['width'] > 0) $s[] = 'width: ' . $data['width']; if (array_key_exists('type', $data)) $s[] = "type: '" . $data['type'] . "'"; if (array_key_exists('specs', $data)) $s[] = $data['specs']; + if (array_key_exists('control', $data)) $s[] = 'control: ' . $data['control']; $specs[] = '{' . implode(', ', $s) . '}'; if (array_key_exists('sql', $data)) -- 2.20.1