--- loncom/interface/loncommon.pm 2003/03/20 16:17:37 1.88 +++ loncom/interface/loncommon.pm 2003/03/26 19:34:42 1.90 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # a pile of common routines # -# $Id: loncommon.pm,v 1.88 2003/03/20 16:17:37 www Exp $ +# $Id: loncommon.pm,v 1.90 2003/03/26 19:34:42 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -613,7 +613,7 @@ See lonrights.pm for an example invocati sub select_form { my ($def,$name,%hash) = @_; my $selectform = " form to allow a user to select the domain to preform an operation in. See loncreateuser.pm for an example invocation and use. +If the $includeempty flag is set, it also includes an empty choice ("no domain +selected"); + =cut #------------------------------------------- sub select_dom_form { - my ($defdom,$name) = @_; + my ($defdom,$name,$includeempty) = @_; my @domains = get_domains(); + if ($includeempty) { @domains=('',@domains); } my $selectdomain = "