Question: I created a view block, whose machine name is "news." 

How do I display it using `module_invoke()` and the machine name of the view?

Answer: 
If you want to pass a parameter to the view use: 

```
echo views_embed_view('view_machine_name', 'block_1', $param);

```

For example:

```
echo views_embed_view('view_machine_name', 'block_1', $node->nid);

```

or:

```
echo views_embed_view('view_machine_name', 'block_1', $nid, $uid);

```
Note, for me the default block (with no name) is called `block` rather than `block_1`:

```
<?php echo views_embed_view('news_archive', 'block'); ?>

```