diff options
author | dave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-07-10 15:44:37 +0000 |
---|---|---|
committer | dave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-07-10 15:44:37 +0000 |
commit | 31d8a979e6884a1c788d3172bf695fef3fc35daf (patch) | |
tree | 010b8f9b226d4d7b5fb22d577774a1d3c8aecd98 | |
parent | 9bc3a4f6794b88944f983c1b44b2a1cbd89f2c98 (diff) | |
download | elgg-31d8a979e6884a1c788d3172bf695fef3fc35daf.tar.gz elgg-31d8a979e6884a1c788d3172bf695fef3fc35daf.tar.bz2 |
ecml added to group profiles
git-svn-id: http://code.elgg.org/elgg/trunk@6691 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r-- | mod/groups/languages/en.php | 2 | ||||
-rw-r--r-- | mod/groups/start.php | 17 |
2 files changed, 18 insertions, 1 deletions
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'); |