Posted By

zachharkey on 04/13/10


Tagged

drupal templatephp D6


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

mbria
jmaties
Onfire60


Drupal theme preprocess - add classes


 / Published in: PHP
 

  1. // Add 'node' back to list of classes because many js based
  2. // admin modules key off of .node instead of AT's preferred .article.
  3. $classes = explode(' ', $vars['classes']);
  4. $classes[] = 'node';
  5. $vars['classes'] = implode(' ', $classes);

Report this snippet  

You need to login to post a comment.