]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Removing blog options from groups, part 1.
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Mon, 24 May 2010 17:30:24 +0000 (17:30 +0000)
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Mon, 24 May 2010 17:30:24 +0000 (17:30 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@6183 36083f99-b078-4883-b0ff-0f9b5a30f544

mod/blog/start.php

index 6ac8a5dc743eb6d2304b64fc6ef2517bb7f09cb8..47e3127bfb7f3c1a42fcb4b20cc70c6affd43a46 100644 (file)
@@ -49,8 +49,6 @@ function blog_init() {
        // Register for search.
        register_entity_type('object', 'blog');
 
-       add_group_tool_option('blog', elgg_echo('blog:enableblog'), true);
-
        //add_widget_type('blog', elgg_echo('blog'), elgg_echo('blog:widget:description'), 'profile, dashboard');
 
        $action_path = dirname(__FILE__) . '/actions/blog';
@@ -183,21 +181,6 @@ function blog_url_handler($entity) {
        return $url;
 }
 
-/**
- * Add menu items for groups
- */
-function blog_page_setup() {
-       global $CONFIG;
-       $page_owner = page_owner_entity();
-
-       if ($page_owner instanceof ElggGroup && get_context() == 'groups') {
-               if($page_owner->blog_enable != "no") {
-                       $url = "{$CONFIG->wwwroot}pg/blog/{$page_owner->username}/items";
-                       //add_submenu_item(elgg_echo('blog:groups:group_blogs'), $url);
-               }
-       }
-}
-
 /**
  * Register blogs with ECML.
  *