From 8367d662fcaad1c09e48ae36bc4249b60570aefb Mon Sep 17 00:00:00 2001 From: Kjartan Mannes Date: Mon, 18 Jun 2001 20:51:58 +0000 Subject: Changes - Modifed form_select() to accept an optional 6th parameter which is appeneded to the select tag. $value can now also be an array. This allows for multiple selects: form_select($header, $name, $values, $options, $help, "multiple=\"true\" size=\"10\""); - Updated account.module to use the extended form_select() functionality. --- includes/common.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'includes/common.inc') diff --git a/includes/common.inc b/includes/common.inc index ac78a5d4c..e52760ec0 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -179,10 +179,10 @@ function form_textarea($title, $name, $value, $cols, $rows, $description = 0) { return form_item($title, "", $description); } -function form_select($title, $name, $value, $options, $description = 0) { +function form_select($title, $name, $value, $options, $description = 0, $extra = 0) { if (count($options) > 0) { - foreach ($options as $key=>$choice) $select .= ""; - return form_item($title, "", $description); + foreach ($options as $key=>$choice) $select .= ""; + return form_item($title, "", $description); } } -- cgit v1.2.3