From ddf9227dc48faf7effbf3bf263aa271f35d74c43 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 13 Aug 2020 12:23:27 +0300 Subject: pluginhost: allow overriding default sort modes via HOOK_HEADLINES_CUSTOM_SORT_MAP etc --- index.php | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'index.php') diff --git a/index.php b/index.php index f1a8d0f0c..543d2b008 100644 --- a/index.php +++ b/index.php @@ -198,6 +198,14 @@ + + get_hooks(PluginHost::HOOK_HEADLINES_CUSTOM_SORT_MAP) as $p) { + $sort_map = $p->hook_headlines_custom_sort_map(); + + foreach ($sort_map as $sort_value => $sort_title) { + print ""; + } + } ?>
-- cgit v1.2.3