title: Drupal 7 views_embed_view and templates
body: <p>In Drupal 7</p>
  
  <ul>
  <li>created a block view (called *super_gallery*) of <em>grid</em> format</li>
  <li>added a template specialization <code>views-view-grid--super-gallery--block.tpl.php</code></li>
  <li>cleared theme registry</li>
  <li>cleared all caches</li>
  </ul>
  
  <p>Using preview in view editor I can see output modified by the template. <strong>GOOD</strong></p>
  
  <p>Using <code>&lt;?php print views_embed_view("super_gallery", "default", $gallery_arguments); ?&gt;</code>
  inside another template to show *super_gallery* view, it shows output without changes. <strong>BAD</strong></p>
  
  <p><strong>How can I use templates with <code>views_embed_view</code>?</strong></p>
  
  <p><strong>EDIT 1</strong>
  Tried also with:</p>
  
  <pre><code>$view = views_get_view("super_gallery");
  print $view-&gt;preview("default", $gallery_arguments);
  </code></pre>
  
  <p>and</p>
  
  <pre><code>$view = views_get_view("super_gallery");
  print $view-&gt;execute_display("default", $gallery_arguments);
  </code></pre>
  
  <p>Nothing changed</p>