From 31d8a979e6884a1c788d3172bf695fef3fc35daf Mon Sep 17 00:00:00 2001 From: dave Date: Sat, 10 Jul 2010 15:44:37 +0000 Subject: ecml added to group profiles git-svn-id: http://code.elgg.org/elgg/trunk@6691 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/groups/languages/en.php | 2 ++ mod/groups/start.php | 17 ++++++++++++++++- 2 files changed, 18 insertions(+), 1 deletion(-) (limited to 'mod') diff --git a/mod/groups/languages/en.php b/mod/groups/languages/en.php index 0bd0cbd39..58a6c7f31 100644 --- a/mod/groups/languages/en.php +++ b/mod/groups/languages/en.php @@ -231,6 +231,8 @@ or click below to view the group's join requests: // ecml 'groups:ecml:discussion' => 'Group Discussions', + 'groups:ecml:groupprofile' => 'Group profiles', + ); add_translation("en", $english); \ No newline at end of file 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'); -- cgit v1.2.3