diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-03-06 23:37:21 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-03-06 23:37:21 +0000 |
commit | f22a2d9caf90e6cf98a340bf5c8e9bc939c684af (patch) | |
tree | a62699c5e58be1810a46891e49b475853e8a66bb /mod/custom_index/start.php | |
parent | 4a9c6c26190fd91c3e5ade9af1d15b4e68ace293 (diff) | |
download | elgg-f22a2d9caf90e6cf98a340bf5c8e9bc939c684af.tar.gz elgg-f22a2d9caf90e6cf98a340bf5c8e9bc939c684af.tar.bz2 |
custom index plugin checks return value on hook now
git-svn-id: http://code.elgg.org/elgg/trunk@8615 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/custom_index/start.php')
-rw-r--r-- | mod/custom_index/start.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/mod/custom_index/start.php b/mod/custom_index/start.php index 471a03999..857798798 100644 --- a/mod/custom_index/start.php +++ b/mod/custom_index/start.php @@ -15,7 +15,12 @@ function custom_index_init() { register_plugin_hook('index', 'system', 'custom_index'); } -function custom_index() { +function custom_index($hook, $type, $return, $params) { + if ($return == true) { + // another hook has already replaced the front page + return $return; + } + if (!include_once(dirname(__FILE__) . "/index.php")) { return false; } |