aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-01-23 17:07:39 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-01-23 17:07:39 +0000
commitea4ce23b2481469637e87e8e21a822894ee175b7 (patch)
tree330945c66ce820e1d83813b639feeb5382ad3073
parent3ffc92b3d7693b669f6d1b4675eba1e6dbde4492 (diff)
downloadelgg-ea4ce23b2481469637e87e8e21a822894ee175b7.tar.gz
elgg-ea4ce23b2481469637e87e8e21a822894ee175b7.tar.bz2
Refs #2557 merged fix into trunk from 1.7 branch
git-svn-id: http://code.elgg.org/elgg/trunk@7916 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r--engine/lib/group.php12
-rw-r--r--mod/groups/start.php3
2 files changed, 3 insertions, 12 deletions
diff --git a/engine/lib/group.php b/engine/lib/group.php
index 3b42de02f..1f2099dcd 100644
--- a/engine/lib/group.php
+++ b/engine/lib/group.php
@@ -801,15 +801,3 @@ function list_group_search($tag, $limit = 10) {
return elgg_view_entity_list($entities, $count, $offset, $limit, $fullview, false);
}
-
-/**
- * Performs initialisation functions for groups
- *
- * @return void
- */
-function group_init() {
- // Register an entity type
- register_entity_type('group', '');
-}
-
-elgg_register_event_handler('init', 'system', 'group_init');
diff --git a/mod/groups/start.php b/mod/groups/start.php
index 92416a205..0abd48571 100644
--- a/mod/groups/start.php
+++ b/mod/groups/start.php
@@ -16,6 +16,9 @@ function groups_init() {
elgg_register_library('elgg:groups', elgg_get_plugin_path() . 'groups/lib/groups.php');
+ // register group entities for search
+ register_entity_type('group', '');
+
// Set up the menu
$item = new ElggMenuItem('groups', elgg_echo('groups'), 'pg/groups/all');
elgg_register_menu_item('site', $item);