X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fsvc_Common.pm;h=ff00ce0289f75a03544e2d641b5c69ab650052f9;hb=98aa4355cb0a31f97cdbeabb6c190c908ba355a0;hp=499afe0fd8fce69df9df91ed5aebd29d77039c1a;hpb=36d4c11cb8adf66c982c6f4c75b95fa4e6addd0b;p=freeside.git 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.