diff options
author | Cash Costello <cash.costello@gmail.com> | 2009-10-03 18:20:59 +0000 |
---|---|---|
committer | Cash Costello <cash.costello@gmail.com> | 2009-10-03 18:20:59 +0000 |
commit | 82ed7baf78c3005309487fc4e8b075cba9249e8b (patch) | |
tree | 79c939fb5fc23dbe5a732afd869b20386f16c374 /start.php | |
parent | 6263b1d67488acd66f457aee0ec8a70e418ea5dc (diff) | |
download | elgg-82ed7baf78c3005309487fc4e8b075cba9249e8b.tar.gz elgg-82ed7baf78c3005309487fc4e8b075cba9249e8b.tar.bz2 |
cleaned up events and plugin hooks
Diffstat (limited to 'start.php')
-rw-r--r-- | start.php | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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;
}
|