title: Set PHP Variables for Drupal 7 Theme Files
body: <p>I want to set custom php variables that can be used throughout my drupal theme (html.tpl.php, page.tpl.php etc.) I need the variables set based on the $title of the node. I'm not an expert on how Drupal works, the moduling and hooks, and I just need to know the simplest/easiest way to accomplish this. I keep reading about implementing some sort of hook in the template.php file where you can set variables, but I've been unsuccesful with everything I've tried. </p>
  
  <p>So, basically, how would you accomplish this:</p>
  
  <ol>
  <li>Get $title of Node</li>
  <li>Set variables that will be passed along into theme files (for example, to do basic things like: if($title == 'news_page') { $siteSection = "news"; } )</li>
  <li>Have $siteSection be available to use in theme files</li>
  </ol>
  
  <p>Any help would be great.. thanks!</p>