diff options
| author | ivan <ivan> | 2004-03-24 14:17:30 +0000 | 
|---|---|---|
| committer | ivan <ivan> | 2004-03-24 14:17:30 +0000 | 
| commit | 72fcc42094fe7cacd1d839e97355d4a8a204a008 (patch) | |
| tree | 1d9ae722f37236b58c97f135e930217ce4fcc635 /eg/export_template.pm | |
| parent | b4342cb7130d7b3d0e7d8eb3ada02cac095e0f62 (diff) | |
update example export for the new world of export data in themodule files
Diffstat (limited to 'eg/export_template.pm')
| -rw-r--r-- | eg/export_template.pm | 27 | 
1 files changed, 26 insertions, 1 deletions
diff --git a/eg/export_template.pm b/eg/export_template.pm index 00942fd12..cd42211dd 100644 --- a/eg/export_template.pm +++ b/eg/export_template.pm @@ -1,10 +1,35 @@  package FS::part_export::myexport; -use vars qw(@ISA); +use vars qw(@ISA %info); +use Tie::IxHash;  use FS::part_export;  @ISA = qw(FS::part_export); +tie my %options, 'Tie::IxHash', +  'regular_option'  => { label => 'Option description', default => 'value' }, +  'select_option'   => { label   => 'Select option description', +                         type    => 'select', options=>[qw(chocolate vanilla)], +                         default => 'vanilla', +                       }, +  'textarea_option' => { label   => 'Textarea option description', +                         type    => 'textarea', +                         default => 'Default text.', +                      }, +  'checkbox_option' => { label => 'Checkbox label', type => 'checkbox' }, +; + +%info = ( +  'svc'      => 'svc_acct', +  #'svc'      => [qw( svc_acct svc_forward )], +  'desc'     => +    'Export short description', +  'options'  => \%options, +  'nodomain' => 'Y', +  'notes'    => <<'END' +HTML notes about this export. +END +  sub rebless { shift; }  sub _export_insert {  | 
