From 00d638ca5790cac5cf1d7b195e07d17f9cbb80a4 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Thu, 6 Nov 2003 18:27:58 +0000 Subject: - Usability improvement: replaced many selection boxes by radio buttons. Patch by Stefan. - Usability improvement: introduced a form_group() function and updated the node and comment module to take advantage of it. Patch #149 by Eric Farris. --- includes/common.inc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'includes/common.inc') diff --git a/includes/common.inc b/includes/common.inc index 435318165..a0aa2d13a 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -905,6 +905,9 @@ function form($form, $method = "post", $action = 0, $options = 0) { function form_item($title, $value, $description = 0) { return "
". ($title ? "
$title:
" : "") . $value . ($description ? "
$description
" : "") ."
\n"; } +function form_group($legend, $group, $description = 0) { + return "
" . ($legend ? "$legend" : "") . $group . ($description ? "
$description
" : "") . "
\n"; +} function form_radio($title, $name, $value = 1, $checked = 0, $description = 0, $attributes = 0) { return form_item(0, " $title", $description); -- cgit v1.2.3