summaryrefslogtreecommitdiff
path: root/FS/FS/svc_Common.pm
diff options
context:
space:
mode:
authorjeff <jeff>2008-03-12 16:24:34 +0000
committerjeff <jeff>2008-03-12 16:24:34 +0000
commit99037cf94d9d6b5d7c1e512a6dca842706851710 (patch)
tree71414d57ee5f6a9e9a82116b370665dfaf077a63 /FS/FS/svc_Common.pm
parent523a6ea6ecb07ed1b953c05ce36ef7b33293cf18 (diff)
allow exports to add links to customer view (#1407)
Diffstat (limited to 'FS/FS/svc_Common.pm')
-rw-r--r--FS/FS/svc_Common.pm13
1 files changed, 13 insertions, 0 deletions
diff --git a/FS/FS/svc_Common.pm b/FS/FS/svc_Common.pm
index 787acee..d830f2f 100644
--- a/FS/FS/svc_Common.pm
+++ b/FS/FS/svc_Common.pm
@@ -708,6 +708,19 @@ sub unsuspend {
$self->export('unsuspend', @$export_args);
}
+=item export_links
+
+Runs export_links callbacks and returns the links.
+
+=cut
+
+sub export_links {
+ my $self = shift;
+ my $return = [];
+ $self->export('links', $return);
+ $return;
+}
+
=item export HOOK [ EXPORT_ARGS ]
Runs the provided export hook (i.e. "suspend", "unsuspend") for this service.