diff options
Diffstat (limited to 'mod/groups')
-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'); |