From 5ac9ea61baac0cf298b07317051da51e781645b7 Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Fri, 17 Apr 2015 14:54:33 +0200 Subject: [PATCH] Added text_input() helper. --- includes/ui/ui_input.inc | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/includes/ui/ui_input.inc b/includes/ui/ui_input.inc index ef8b9cac..bdb7e945 100644 --- a/includes/ui/ui_input.inc +++ b/includes/ui/ui_input.inc @@ -504,6 +504,16 @@ function label_row($label, $value, $params="", $params2="", $leftfill=0, $id=nul echo "\n"; } +function text_input($name, $value=null, $size='', $max='', $title='', $params='') +{ + if ($value === null) + $value = get_post($name); + + return ""; +} + //----------------------------------------------------------------------------------- function text_cells($label, $name, $value=null, $size="", $max="", $title=false, @@ -516,11 +526,7 @@ function text_cells($label, $name, $value=null, $size="", $max="", $title=false, label_cell($label, $labparams); echo ""; - if ($value === null) - $value = get_post($name); - echo ""; + echo text_input($name, $value, $size, $max, $title, $inparams); if ($post_label != "") echo " " . $post_label; -- 2.30.2