aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-19 02:13:19 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-19 02:13:19 +0000
commit19551a6419edaf599461fd1ae65b20b85e466644 (patch)
treef819536edb09459694e603d6a317ff9220334126 /mod
parent373ff03a2b6315eea13a97065774972ad3713ab6 (diff)
downloadelgg-19551a6419edaf599461fd1ae65b20b85e466644.tar.gz
elgg-19551a6419edaf599461fd1ae65b20b85e466644.tar.bz2
Removing test group default widget code.
git-svn-id: http://code.elgg.org/elgg/trunk@8303 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod')
-rw-r--r--mod/groups/start.php29
1 files changed, 1 insertions, 28 deletions
diff --git a/mod/groups/start.php b/mod/groups/start.php
index b86dbd43f..96eca34d4 100644
--- a/mod/groups/start.php
+++ b/mod/groups/start.php
@@ -79,14 +79,11 @@ function groups_init() {
// Register a handler for delete groups
elgg_register_event_handler('delete', 'group', 'groups_delete_event_listener');
-
+
elgg_register_event_handler('join', 'group', 'groups_user_join_event_listener');
elgg_register_event_handler('leave', 'group', 'groups_user_leave_event_listener');
elgg_register_event_handler('pagesetup', 'system', 'groups_submenus');
elgg_register_event_handler('annotate', 'all', 'group_object_notifications');
-
- // allow admins to set default widgets for users on profiles
- elgg_register_plugin_hook_handler('get_list', 'default_widgets', 'groups_default_widgets_hook');
}
/**
@@ -672,27 +669,3 @@ function groups_can_edit_discussion($entity, $group_owner) {
return false;
}
}
-
-
-/**
- * Register profile widgets with default widgets
- *
- * @param unknown_type $hook
- * @param unknown_type $type
- * @param unknown_type $return
- * @param unknown_type $params
- * @return array
- */
-function groups_default_widgets_hook($hook, $type, $return, $params) {
- $return[] = array(
- 'name' => elgg_echo('groups'),
- 'widget_context' => 'groups',
- 'widget_columns' => 3,
-
- 'event' => 'create',
- 'entity_type' => 'group',
- 'entity_subtype' => ELGG_ENTITIES_ANY_VALUE,
- );
-
- return $return;
-} \ No newline at end of file