Exemplo n.º 1
0
/**
 * bp_groupblog_delete_meta( $blog_id, $drop = false )
 *
 * Clean up groupmeta after a blog gets deleted.
 */
function bp_groupblog_delete_meta($blog_id, $drop = false)
{
    $group_id = get_groupblog_group_id($blog_id);
    groups_update_groupmeta($group_id, 'groupblog_enable_blog', '');
    groups_update_groupmeta($group_id, 'groupblog_blog_id', '');
    groups_update_groupmeta($group_id, 'groupblog_silent_add', '');
    groups_update_groupmeta($group_id, 'groupblog_default_admin_role', '');
    groups_update_groupmeta($group_id, 'groupblog_default_mod_role', '');
    groups_update_groupmeta($group_id, 'groupblog_default_member_role', '');
}
function bp_get_groupblog_id()
{
    global $current_blog;
    return apply_filters('bp_get_groupblog_id', get_groupblog_group_id($current_blog->blog_id));
}