aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Council.pm
diff options
context:
space:
mode:
authorDave Arter <davea@mysociety.org>2018-03-12 11:30:56 +0000
committerDave Arter <davea@mysociety.org>2018-03-29 16:04:31 +0100
commitecb18f343e14918ed0bd916ac87969df445f64da (patch)
treeca6719f5e9f7137468405d5d4050f723265a278d /perllib/FixMyStreet/App/Controller/Council.pm
parent779c6fefcfe7ffde967098697ece10357aa3f4cf (diff)
Allow cobrands to add extra MapIt areas & types
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Council.pm')
-rw-r--r--perllib/FixMyStreet/App/Controller/Council.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Council.pm b/perllib/FixMyStreet/App/Controller/Council.pm
index 0e7553dc4..85976ae45 100644
--- a/perllib/FixMyStreet/App/Controller/Council.pm
+++ b/perllib/FixMyStreet/App/Controller/Council.pm
@@ -49,6 +49,11 @@ sub load_and_check_areas : Private {
$area_types = $c->cobrand->area_types;
}
+ # Cobrand may wish to add area types to look up for a point at runtime.
+ # This can be used for, e.g., parish councils on a particular council
+ # cobrand.
+ $area_types = $c->cobrand->call_hook("add_extra_area_types" => $area_types) || $area_types;
+
my $all_areas;
my %params;