--- loncom/interface/loncommon.pm 2005/11/08 03:08:15 1.283 +++ loncom/interface/loncommon.pm 2005/11/08 03:12:35 1.284 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # a pile of common routines # -# $Id: loncommon.pm,v 1.283 2005/11/08 03:08:15 albertel Exp $ +# $Id: loncommon.pm,v 1.284 2005/11/08 03:12:35 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1170,12 +1170,13 @@ Args: $size - number of rows long the select element is $hash - the elements should be 'option' => 'shown text' (shown text should already have been &mt()) + $order - (optional) array ref of the order to show the elments in =cut #------------------------------------------- sub multiple_select_form { - my ($name,$value,$size,$hash)=@_; + my ($name,$value,$size,$hash,$order)=@_; my %selected = map { $_ => 1 } ref($value)?@{$value}:($value); my $output=''; if (! defined($size)) { @@ -1185,10 +1186,12 @@ sub multiple_select_form { } } $output.="\n\n"; return $output;