<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fc0 solid; padding: 6px; }
#msg ul, pre { overflow: auto; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<title>[BuddyPress] [2211] trunk: Removing deprecated group listing in admin area.</title>
</head>
<body>

<div id="msg">
<dl>
<dt>Revision</dt> <dd>2211</dd>
<dt>Author</dt> <dd>apeatling</dd>
<dt>Date</dt> <dd>2009-12-27 10:59:44 +0000 (Sun, 27 Dec 2009)</dd>
</dl>

<h3>Log Message</h3>
<pre>Removing deprecated group listing in admin area.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkbpgroupsphp">trunk/bp-groups.php</a></li>
</ul>

<h3>Removed Paths</h3>
<ul>
<li><a href="#trunkbpgroupsbpgroupsadminphp">trunk/bp-groups/bp-groups-admin.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkbpgroupsbpgroupsadminphp"></a>
<div class="delfile"><h4>Deleted: trunk/bp-groups/bp-groups-admin.php (2210 => 2211)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-groups/bp-groups-admin.php        2009-12-27 10:47:04 UTC (rev 2210)
+++ trunk/bp-groups/bp-groups-admin.php        2009-12-27 10:59:44 UTC (rev 2211)
</span><span class="lines">@@ -1,129 +0,0 @@
</span><del>-&lt;?php
-
-function groups_admin_settings() {
-
-        if ( isset( $_POST['groups_admin_delete']) &amp;&amp; isset( $_POST['allgroups'] ) ) {
-                if ( !check_admin_referer('bp-groups-admin') )
-                        return false;
-
-                $errors = false;
-                foreach ( $_POST['allgroups'] as $group_id ) {
-                        $group = new BP_Groups_Group( $group_id );
-                        if ( !$group-&gt;delete() ) {
-                                $errors = true;
-                        }
-                }
-
-                if ( $errors ) {
-                        $message = __( 'There were errors when deleting groups, please try again', 'buddypress' );
-                        $type = 'error';
-                } else {
-                        $message = __( 'Groups deleted successfully', 'buddypress' );
-                        $type = 'updated';
-                }
-        }
-?&gt;
-        &lt;?php if ( isset( $message ) ) { ?&gt;
-                &lt;div id=&quot;message&quot; class=&quot;&lt;?php echo $type ?&gt; fade&quot;&gt;
-                        &lt;p&gt;&lt;?php echo $message ?&gt;&lt;/p&gt;
-                &lt;/div&gt;
-        &lt;?php } ?&gt;
-
-        &lt;div class=&quot;wrap&quot; style=&quot;position: relative&quot;&gt;
-                &lt;h2&gt;&lt;?php _e( 'Groups', 'buddypress' ) ?&gt;&lt;/h2&gt;
-
-                &lt;form id=&quot;wpmu-search&quot; method=&quot;post&quot; action=&quot;&quot;&gt;
-                        &lt;input type=&quot;text&quot; size=&quot;17&quot; value=&quot;&lt;?php echo attribute_escape( stripslashes( $_REQUEST['s'] ) ); ?&gt;&quot; name=&quot;s&quot; /&gt;
-                        &lt;input id=&quot;post-query-submit&quot; class=&quot;button&quot; type=&quot;submit&quot; value=&quot;&lt;?php _e( 'Search Groups', 'buddypress' ) ?&gt;&quot; /&gt;
-                &lt;/form&gt;
-
-                &lt;?php if ( bp_has_site_groups( 'type=active&amp;per_page=10' ) ) : ?&gt;
-                        &lt;form id=&quot;bp-group-admin-list&quot; method=&quot;post&quot; action=&quot;&quot;&gt;
-                                &lt;div class=&quot;tablenav&quot;&gt;
-                                        &lt;div class=&quot;tablenav-pages&quot;&gt;
-                                                &lt;?php bp_site_groups_pagination_count() ?&gt; &lt;?php bp_site_groups_pagination_links() ?&gt;
-                                        &lt;/div&gt;
-                                        &lt;div class=&quot;alignleft&quot;&gt;
-                                                &lt;input class=&quot;button-secondary delete&quot; type=&quot;submit&quot; name=&quot;groups_admin_delete&quot; value=&quot;&lt;?php _e( 'Delete', 'buddypress' ) ?&gt;&quot; onclick=&quot;if ( !confirm('&lt;?php _e( 'Are you sure?', 'buddypress' ) ?&gt;') ) return false&quot;/&gt;
-                                                &lt;?php wp_nonce_field('bp-groups-admin') ?&gt;
-                                                &lt;br class=&quot;clear&quot;/&gt;
-                                        &lt;/div&gt;
-                                &lt;/div&gt;
-
-                                &lt;br class=&quot;clear&quot;/&gt;
-
-                                &lt;?php if ( isset( $_REQUEST['s'] ) &amp;&amp; $_REQUEST['s'] != '' ) { ?&gt;
-                                        &lt;p&gt;&lt;?php echo sprintf( __( 'Groups matching: &quot;%s&quot;', 'buddypress' ), $_REQUEST['s'] ) ?&gt;&lt;/p&gt;
-                                &lt;?php } ?&gt;
-
-
-                                &lt;table class=&quot;widefat&quot; cellspacing=&quot;3&quot; cellpadding=&quot;3&quot;&gt;
-                                        &lt;thead&gt;
-                                                &lt;tr&gt;
-                                                        &lt;th class=&quot;check-column&quot; scope=&quot;col&quot;&gt;
-                                                                &lt;input id=&quot;group_check_all&quot; type=&quot;checkbox&quot; value=&quot;0&quot; name=&quot;group_check_all&quot; onclick=&quot;if ( jQuery(this).attr('checked') ) { jQuery('#group-list input[@type=checkbox]').attr('checked', 'checked'); } else { jQuery('#group-list input[@type=checkbox]').attr('checked', ''); }&quot; /&gt;
-                                                        &lt;/th&gt;
-                                                        &lt;th scope=&quot;col&quot;&gt;
-                                                        &lt;/th&gt;
-                                                        &lt;th scope=&quot;col&quot;&gt;
-                                                                        ID
-                                                        &lt;/th&gt;
-                                                        &lt;th scope=&quot;col&quot;&gt;
-                                                                        &lt;?php _e( 'Name', 'buddypress' ) ?&gt;
-                                                        &lt;/th&gt;
-                                                        &lt;th scope=&quot;col&quot;&gt;
-                                                                        &lt;?php _e( 'Description', 'buddypress' ) ?&gt;
-                                                        &lt;/th&gt;
-                                                        &lt;th scope=&quot;col&quot;&gt;
-                                                                        &lt;?php _e( 'Type', 'buddypress' ) ?&gt;
-                                                        &lt;/th&gt;
-                                                        &lt;th scope=&quot;col&quot;&gt;
-                                                                        &lt;?php _e( 'Members', 'buddypress' ) ?&gt;
-                                                        &lt;/th&gt;
-                                                        &lt;th scope=&quot;col&quot;&gt;
-                                                                        &lt;?php _e( 'Created', 'buddypress' ) ?&gt;
-                                                        &lt;/th&gt;
-                                                        &lt;th scope=&quot;col&quot;&gt;
-                                                                        &lt;?php _e( 'Last Active', 'buddypress' ) ?&gt;
-                                                        &lt;/th&gt;
-                                                        &lt;th scope=&quot;col&quot;&gt;
-                                                        &lt;/th&gt;
-                                                &lt;/tr&gt;
-                                        &lt;/thead&gt;
-                                        &lt;tbody id=&quot;group-list&quot; class=&quot;list:groups group-list&quot;&gt;
-                                        &lt;?php $counter = 0 ?&gt;
-                                        &lt;?php while ( bp_site_groups() ) : bp_the_site_group(); ?&gt;
-                                                &lt;tr&lt;?php if ( 1 == $counter % 2 ) { ?&gt; class=&quot;alternate&quot;&lt;?php }?&gt;&gt;
-                                                        &lt;th class=&quot;check-column&quot; scope=&quot;row&quot;&gt;
-                                                                &lt;input id=&quot;group_&lt;?php bp_the_site_group_id() ?&gt;&quot; type=&quot;checkbox&quot; value=&quot;&lt;?php bp_the_site_group_id() ?&gt;&quot; name=&quot;allgroups[&lt;?php bp_the_site_group_id() ?&gt;]&quot; /&gt;
-                                                        &lt;/th&gt;
-                                                        &lt;td&gt;&lt;?php bp_the_site_group_avatar_mini() ?&gt;&lt;/td&gt;
-                                                        &lt;td&gt;&lt;?php bp_the_site_group_id() ?&gt;&lt;/td&gt;
-                                                        &lt;td&gt;&lt;a href=&quot;&lt;?php bp_the_site_group_link() ?&gt;&quot;&gt;&lt;?php bp_the_site_group_name() ?&gt;&lt;/a&gt;&lt;/td&gt;
-                                                        &lt;td&gt;&lt;?php bp_the_site_group_description_excerpt() ?&gt;&lt;/td&gt;
-                                                        &lt;td&gt;&lt;?php bp_the_site_group_type() ?&gt;&lt;/td&gt;
-                                                        &lt;td&gt;&lt;?php bp_the_site_group_member_count() ?&gt;&lt;/td&gt;
-                                                        &lt;td&gt;&lt;?php bp_the_site_group_date_created() ?&gt;&lt;/td&gt;
-                                                        &lt;td&gt;&lt;?php bp_the_site_group_last_active() ?&gt;&lt;/td&gt;
-                                                        &lt;td&gt;&lt;a href=&quot;&lt;?php bp_the_site_group_link() ?&gt;/admin&quot;&gt;&lt;?php _e( 'Edit', 'buddypress') ?&gt;&lt;/a&gt;&lt;/td&gt;
-                                                &lt;/tr&gt;
-                                                &lt;?php $counter++ ?&gt;
-                                        &lt;?php endwhile; ?&gt;
-                                        &lt;/tbody&gt;
-                                &lt;/table&gt;
-
-                &lt;?php else: ?&gt;
-
-                        &lt;div id=&quot;message&quot; class=&quot;info&quot;&gt;
-                                &lt;p&gt;&lt;?php _e( 'No groups found.', 'buddypress' ) ?&gt;&lt;/p&gt;
-                        &lt;/div&gt;
-
-                &lt;?php endif; ?&gt;
-
-                &lt;?php bp_the_site_group_hidden_fields() ?&gt;
-                &lt;/form&gt;
-        &lt;/div&gt;
-&lt;?php
-}
-
-?&gt;
</del><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkbpgroupsphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-groups.php (2210 => 2211)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-groups.php        2009-12-27 10:47:04 UTC (rev 2210)
+++ trunk/bp-groups.php        2009-12-27 10:59:44 UTC (rev 2211)
</span><span class="lines">@@ -160,8 +160,6 @@
</span><span class="cx"> function groups_check_installed() {
</span><span class="cx">         global $wpdb, $bp;
</span><span class="cx"> 
</span><del>-        require ( BP_PLUGIN_DIR . '/bp-groups/bp-groups-admin.php' );
-
</del><span class="cx">         /* Need to check db tables exist, activate hook no-worky in mu-plugins folder. */
</span><span class="cx">         if ( get_site_option('bp-groups-db-version') &lt; BP_GROUPS_DB_VERSION )
</span><span class="cx">                 groups_install();
</span></span></pre>
</div>
</div>

</body>
</html>