* Add enclair_db option to UserDB.pm. Allows logging of enclair password
[interchange.git] / code / UserTag / bar_button.tag
1 # Copyright 2003-2007 Interchange Development Group and others
2
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.  See the LICENSE file for details.
7
8 # $Id: bar_button.tag,v 1.5 2007-03-30 23:40:56 pajamian Exp $
9
10 UserTag bar-button Order     page current
11 UserTag bar-button PosNumber 2
12 UserTag bar-button HasEndTag 1
13 UserTag bar-button Version   $Revision: 1.5 $
14 UserTag bar-button Routine   <<EOR
15 sub {
16         use strict;
17         my ($page, $current, $html) = @_;
18         $current = $Global::Variable->{MV_PAGE}
19                 if ! $current;
20         $html =~ s!\[selected\]((?s:.)*)\[/selected]!!i;
21         my $alt = $1;
22         return $html if $page ne $current;
23         return $alt;
24 }
25 EOR