spam settings, RT#15987
authorivan <ivan>
Thu, 9 Feb 2012 10:09:57 +0000 (10:09 +0000)
committerivan <ivan>
Thu, 9 Feb 2012 10:09:57 +0000 (10:09 +0000)
FS/FS/svc_Common.pm

index 499afe0..ff00ce0 100644 (file)
@@ -1021,6 +1021,24 @@ sub export_getstatus {
   ( $html, \%hash );
 }
 
+=item export_setstatus
+
+Runs export_setstatus callbacks.  If there is an error, returns the error,
+otherwise returns false.
+
+=cut
+
+sub export_setstatus {
+  my( $self, @args ) = @_;
+  my $error = $self->export('setstatus', @args);
+  if ( $error ) {
+    warn "error running export_setstatus: $error";
+    return $error;
+  }
+  '';
+}
+
+
 =item export HOOK [ EXPORT_ARGS ]
 
 Runs the provided export hook (i.e. "suspend", "unsuspend") for this service.