title: Drupal 6: Make a menu_hook() return a specific view
body: <p>I created a hook in order to add an item to the administrator's menu. When the user clicks on the item, I want to return the content of a specific view I created. How should I return the view? </p>
  
  <p>My current code looks like:</p>
  
  <pre><code>function my_view_menu(){
     $items['view'] = array(
      'title' =&gt; 'Report', 
      'page callback' =&gt; 'return_my_view', 
      'access arguments' =&gt; array('access content'), 
      'type' =&gt; MENU_NORMAL_ITEM,
    );    
     return $items;
  }
  
  function return_my_view(){
    return t("Hello!");
  } 
  </code></pre>
  
  <p><strong>EDIT:</strong></p>
  
  <p>As suggested by Berdir, this the correct way to call a view:</p>
  
  <pre><code>function return_my_view(){
    $viewName = 'my_report'; // use the machine readable name of the view
    return views_embed_view($viewName);
  } 
  </code></pre>