How to embed two views into a block I have two views that are block displays.  I'm trying to embed these views in a block.  When I include the block nothing is displayed.  If i add "test" to $block['content'] it displays test in the block body.

Here is my code ($gid is an organic group id as an argument to the block):

  case 5: // Create Mugshot block
    $viewName = 'display_most_wanted';
    $display_id1 = 'block_1';
    $args = array($gid);
    $wanted = views_embed_view($viewName, $display_id1, $args);

    $display_id2 = 'block_2';
    $convicted = views_embed_view($viewName, $display_id2, $args);

    $block['subject'] = 'CWPA OG Mugshots';
    $block['content'] = $wanted . $convicted;         
    break;

  default: 
    // Throw an error
    break;
}

return $block;
It seems like instead of rendering the views programmatically you could also leverage the Views "Attachment" display .  The allows you to attach a view to another display, in other words render one view after another.  The "block_1" display of the view you posted above would be the main view displayed as a block, and then you would change the "block_2" display to an attachment and configure the settings similar to the image below.



This would eliminate the need to create custom code to display both views in a block.