title: How to do taxonomy based css styling using drupal template.php?
body: <p>I'm looking forward to implement taxonomy terms based css styling; especially for the body tag which i want to add the current terms. </p>
  
  <p>For now, here's what i have so far : </p>
  
  <pre><code>function _phptemplate_variables($hook, $vars = array()) {
      global $node;
      switch ($hook) {
          case 'page':            die ('test');
              $vars['body_class'] = '';
              if (arg(0) == 'taxonomy' &amp;&amp; arg(1) == 'term' &amp;&amp; is_numeric(arg(2))) {
                  $vars['body_class'] = 'theme'.arg(2);
              }
              if (arg(0) == 'node' &amp;&amp; is_numeric(arg(1))) {
                  $node = node_load(arg(1));
                  if (is_array($node-&gt;taxonomy)) {
                      foreach ($node-&gt;taxonomy as $term) {
                          $vars['body_class'] .= 'theme'.$term-&gt;tid;
                      }
                  }
              }
  
              if (drupal_is_front_page()) {
                  $vars['body_class'] .= ' front';
              }
              break;
      }
      return $vars; 
  }
  </code></pre>
  
  <p>I think the code is OK, but it never get called (see my 'die' function); using simple phptemplate engine and minimal drupal6 install.</p>
  
  <p>What obviousity am I missing here ?</p>