summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorivan <ivan>2012-02-09 10:09:57 +0000
committerivan <ivan>2012-02-09 10:09:57 +0000
commit1287481b723bb3dc6e9cfe75007b6c5c567cb675 (patch)
tree18884d5dee592b3ce547fa660a7dca9e19feaf6e
parente11671629ab9738a106c92d291c4a1e1b084f0fb (diff)
spam settings, RT#15987
-rw-r--r--FS/FS/svc_Common.pm18
1 files changed, 18 insertions, 0 deletions
diff --git a/FS/FS/svc_Common.pm b/FS/FS/svc_Common.pm
index 499afe0fd..ff00ce028 100644
--- a/FS/FS/svc_Common.pm
+++ b/FS/FS/svc_Common.pm
@@ -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.