diff options
-rw-r--r-- | app/class/form.class.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/class/form.class.php b/app/class/form.class.php index d3af399..808de27 100644 --- a/app/class/form.class.php +++ b/app/class/form.class.php @@ -78,6 +78,14 @@ class Form } /* + * Add new boolean field to the form + */ + function field_bool($name) + { + $this->field_enum($name, array("true", "false"), "false"); + } + + /* * Populate the form with input data from web page */ function populate($input) |