--- loncom/interface/lonmysql.pm 2003/12/27 01:44:49 1.17 +++ loncom/interface/lonmysql.pm 2003/12/27 16:58:36 1.18 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # MySQL utility functions # -# $Id: lonmysql.pm,v 1.17 2003/12/27 01:44:49 www Exp $ +# $Id: lonmysql.pm,v 1.18 2003/12/27 16:58:36 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -559,7 +559,27 @@ sub update_table_info { $debugstring = "Retrieved table info for $tablename"; return 1; } +############################### + +=pod + +=item &col_order() + +Inputs: table id +Returns: array with column order + +=cut + + +sub col_order { + my $table_id=shift; + if (&update_table_info($table_id)) { + return @{$Tables{$table_id}->{'Col_order'}}; + } else { + return (); + } +} ############################### =pod