summaryrefslogtreecommitdiff
path: root/app/helpers.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/helpers.php')
-rw-r--r--app/helpers.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/helpers.php b/app/helpers.php
index 8351328a..2dcb38e8 100644
--- a/app/helpers.php
+++ b/app/helpers.php
@@ -260,3 +260,8 @@ function form_number($name, $values = array(), array $errors = array(), array $a
{
return form_input('number', $name, $values, $errors, $attributes, $class);
}
+
+function form_numeric($name, $values = array(), array $errors = array(), array $attributes = array(), $class = '')
+{
+ return form_input('text', $name, $values, $errors, $attributes, $class.' form-numeric');
+}