move export info to the modules themselves
[freeside.git] / FS / FS / part_export / sqlradius_withdomain.pm
index 1c8f38c..6130e5e 100644 (file)
@@ -1,8 +1,22 @@
 package FS::part_export::sqlradius_withdomain;
 
-use vars qw(@ISA);
+use vars qw(@ISA %info);
+use Tie::IxHash;
 use FS::part_export::sqlradius;
 
+tie my %options, 'Tie::IxHash', %FS::part_export::sqlradius::options;
+
+%info = (
+  'svc'      => 'svc_acct',
+  'desc'     => 'Real-time export to SQL-backed RADIUS (FreeRADIUS, ICRADIUS, Radiator) with realms',
+  'options'  => \%options,
+  'nodomain' => '',
+  'notes' => $FS::part_export::sqlradius::notes1.
+             'This export exports domains to RADIUS realms (see also '.
+             'sqlradius).  '.
+             $FS::part_export::sqlradius::notes2
+);
+
 @ISA = qw(FS::part_export::sqlradius);
 
 sub export_username {
@@ -10,3 +24,5 @@ sub export_username {
   $svc_acct->email;
 }
 
+1;
+