* Don't autovifivy @fields array entries.
[interchange.git] / code / Widget / gpg_keys.widget
1 # Copyright 2005-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: gpg_keys.widget,v 1.4 2007-03-30 23:40:58 pajamian Exp $
9
10 CodeDef gpg_keys Widget 1
11 CodeDef gpg_keys Description GPG key selector
12 CodeDef gpg_keys Routine <<EOR
13 sub {
14         my ($opt) = @_;
15         $opt->{passed} = $Tag->get_gpg_keys();
16         $opt->{type} = delete $opt->{variant} || 'combo';
17         $opt->{filter} = 'nullselect' if $opt->{type} eq 'combo';
18         return Vend::Form::display($opt);
19 }
20 EOR