title: Drupal 7 Views $title Variable
body: <p>I have a view on a blog page in Drupal 7 that I am overriding using a ".tpl.php" or template file so that I can use my own custom HTML and add a title.</p>
  
  <p>Normally, the title of the view can be accessed in the template file using <code>$title</code> or <code>$block-&gt;subject</code> but this is not working in my view template file.</p>
  
  <p>Using <code>drupal_get_title()</code> simply displays "Blog" because the page itself is a page template, but I need the title of the block view that is being inserted dynamically with PHP into the page template file.</p>
  
  <p>The weird part is that the title will show in the view preview along with the results of the database query (a.k.a. the fields).</p>
  
  <p>So, how do you access the variable that is normally called $title in the template PHP file?</p>