aboutsummaryrefslogtreecommitdiff
path: root/start.php
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2010-07-30 02:03:23 +0000
committerCash Costello <cash.costello@gmail.com>2010-07-30 02:03:23 +0000
commit9c0cc73e8ff5c389482579452312ca67e9c01a2c (patch)
tree47b680ee4dffbe890e6ad80e309db8c9174ac741 /start.php
parent73403645808a81425381f43c25e0ea2c92705312 (diff)
downloadelgg-9c0cc73e8ff5c389482579452312ca67e9c01a2c.tar.gz
elgg-9c0cc73e8ff5c389482579452312ca67e9c01a2c.tar.bz2
Tidypics now requires Elgg 1.5 or greater
Diffstat (limited to 'start.php')
-rw-r--r--start.php11
1 files changed, 3 insertions, 8 deletions
diff --git a/start.php b/start.php
index baaf33f2b..8589be9fb 100644
--- a/start.php
+++ b/start.php
@@ -56,20 +56,15 @@ function tidypics_init() {
register_entity_type('object','image');
register_entity_type('object','album');
- if (function_exists('add_group_tool_option')) {
- add_group_tool_option('photos', elgg_echo('tidypics:enablephotos'), true);
- }
+ add_group_tool_option('photos', elgg_echo('tidypics:enablephotos'), true);
if (get_plugin_setting('grp_perm_override', 'tidypics') != "disabled") {
register_plugin_hook('permissions_check', 'object', 'tidypics_permission_override');
}
// Register for notifications
- if (is_callable('register_notification_object')) {
- register_notification_object('object', 'album', elgg_echo('tidypics:newalbum'));
-
- register_plugin_hook('notify:entity:message', 'object', 'tidypics_notify_message');
- }
+ register_notification_object('object', 'album', elgg_echo('tidypics:newalbum'));
+ register_plugin_hook('notify:entity:message', 'object', 'tidypics_notify_message');
// slideshow plugin hook
register_plugin_hook('tp_slideshow', 'album', 'tidypics_slideshow');