summaryrefslogtreecommitdiff
path: root/FS/FS/svc_Common.pm
diff options
context:
space:
mode:
authorjeff <jeff>2008-03-12 16:22:11 +0000
committerjeff <jeff>2008-03-12 16:22:11 +0000
commit8b6ac2a239c1df4adc00601cde3013ccaa758278 (patch)
tree0536fcd97cf460ba62fcb04a15877419afd8ba08 /FS/FS/svc_Common.pm
parent233ee7a1d81fc8bd87facd1d80212ab069f3e322 (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 fd3a46aa6..313029f54 100644
--- a/FS/FS/svc_Common.pm
+++ b/FS/FS/svc_Common.pm
@@ -695,6 +695,19 @@ sub unsuspend {
$self->export('unsuspend');
}
+=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.