From: ivan Date: Thu, 9 Feb 2012 10:09:58 +0000 (+0000) Subject: spam settings, RT#15987 X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=3007add5e03e67310c49f25790ae3c127d20fb52;p=freeside.git spam settings, RT#15987 --- 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.