From ca9d04c31e99d863b578343c7ded03d8a16e7bad Mon Sep 17 00:00:00 2001 From: ichbin Date: Sat, 15 Jun 2013 21:51:59 -0600 Subject: [PATCH] Adding hook option for a mod to set the default front page. --- sources/Dispatcher.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sources/Dispatcher.class.php b/sources/Dispatcher.class.php index 936a3b4d66..40ac04129d 100644 --- a/sources/Dispatcher.class.php +++ b/sources/Dispatcher.class.php @@ -94,7 +94,8 @@ public function __construct() // home page: board index if (empty($board) && empty($topic)) { - // @todo Unless we have a custom home page registered... + // Reminder: hooks need to account for multiple mods setting this hook. + call_integration_hook('integrate_frontpage', array(&$default_action)); // was it, wasn't it.... if (empty($this->_function_name))