aboutsummaryrefslogtreecommitdiff
path: root/mod/groups/start.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/groups/start.php')
-rw-r--r--mod/groups/start.php17
1 files changed, 16 insertions, 1 deletions
diff --git a/mod/groups/start.php b/mod/groups/start.php
index ccffa7257..3278b6682 100644
--- a/mod/groups/start.php
+++ b/mod/groups/start.php
@@ -77,8 +77,10 @@
register_plugin_hook('profile_menu', 'profile', 'forum_profile_menu');
register_plugin_hook('profile_menu', 'profile', 'activity_profile_menu');
- // allow ecml in discussion
+ // allow ecml in discussion and profiles
register_plugin_hook('get_views', 'ecml', 'groups_ecml_views_hook');
+ register_plugin_hook('get_views', 'ecml', 'groupprofile_ecml_views_hook');
+
}
/**
@@ -617,6 +619,19 @@
return $return_value;
}
+ /**
+ * Parse ECML on group profiles
+ *
+ * @param unknown_type $hook
+ * @param unknown_type $entity_type
+ * @param unknown_type $return_value
+ * @param unknown_type $params
+ */
+ function groupprofile_ecml_views_hook($hook, $entity_type, $return_value, $params) {
+ $return_value['groups/groupprofile'] = elgg_echo('groups:ecml:groupprofile');
+
+ return $return_value;
+ }
register_extender_url_handler('group_topicpost_url','annotation', 'group_topic_post');