From 82ed7baf78c3005309487fc4e8b075cba9249e8b Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Sat, 3 Oct 2009 18:20:59 +0000 Subject: cleaned up events and plugin hooks --- start.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'start.php') diff --git a/start.php b/start.php index 24189d44d..a15215118 100644 --- a/start.php +++ b/start.php @@ -72,7 +72,7 @@ } // slideshow plugin hook - register_plugin_hook('tidypics:slideshow', 'album', 'tidypics_slideshow'); + register_plugin_hook('tp_slideshow', 'album', 'tidypics_slideshow'); } /** @@ -403,8 +403,8 @@ */ function tidypics_slideshow($hook, $entity_type, $returnvalue, $params) { - if ($returnvalue) { - // someone has already added a slideshow + if ($returnvalue !== null) { + // someone has already added a slideshow or requested that the slideshow is not used return $returnvalue; } -- cgit v1.2.3