From 22afb49f30fc9bcd6be84f734e89a9b644f2fb0f Mon Sep 17 00:00:00 2001 From: Cash Costello Date: Sat, 26 Nov 2011 14:08:38 -0500 Subject: updated widgets for 1.8 --- start.php | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'start.php') diff --git a/start.php b/start.php index b57ffb73e..f58e26e8c 100644 --- a/start.php +++ b/start.php @@ -43,13 +43,15 @@ function tidypics_init() { // Register for the entity menu elgg_register_plugin_hook_handler('register', 'menu:entity', 'tidypics_entity_menu_setup'); - // Add group option + // Register group option add_group_tool_option('photos', elgg_echo('tidypics:enablephotos'), true); elgg_extend_view('groups/tool_latest', 'photos/group_module'); + // Register widgets + elgg_register_widget_type('album_view', elgg_echo("tidypics:widget:albums"), elgg_echo("tidypics:widget:album_descr"), 'profile'); + elgg_register_widget_type('latest_photos', elgg_echo("tidypics:widget:latest"), elgg_echo("tidypics:widget:latest_descr"), 'profile'); + /* - //group view ** psuedo widget view for group pages** - elgg_extend_view('groups/right_column','tidypics/groupprofile_albums'); // rss extensions elgg_extend_view('extensions/xmlns', 'extensions/tidypics/xmlns'); @@ -59,11 +61,7 @@ function tidypics_init() { // register for menus //register_elgg_event_handler('pagesetup', 'system', 'tidypics_submenus'); - // Add a new tidypics widget - add_widget_type('album_view', elgg_echo("tidypics:widget:albums"), elgg_echo("tidypics:widget:album_descr"), 'profile'); - add_widget_type('latest_photos', elgg_echo("tidypics:widget:latest"), elgg_echo("tidypics:widget:latest_descr"), 'profile'); - 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'); -- cgit v1.2.3