]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
ecml added to group profiles
authordave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>
Sat, 10 Jul 2010 15:44:37 +0000 (15:44 +0000)
committerdave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>
Sat, 10 Jul 2010 15:44:37 +0000 (15:44 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@6691 36083f99-b078-4883-b0ff-0f9b5a30f544

mod/groups/languages/en.php
mod/groups/start.php

index 0bd0cbd39e35fe0e17e24b83c85b5fd4fd678db5..58a6c7f3153e9aa254136add2abcb9f61a2d94e4 100644 (file)
@@ -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
index ccffa725794b726dc71d5381584b446920b6e08d..3278b66829738b24a93ef5a49da3a7b8607a5d90 100644 (file)
                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');
+
        }
 
        /**
 
                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');