More Bigger Again - Preprocess - this time to get some Class

Last week I wrote about preprocess functions and wanted to do a little follow-up because I was having even more fun making changes, adjustments, and alterations. There is so much here for themers, there is an excess of options and they can be organized and structured very well. Again, as I often say, I do not profess to be a php-guy (I continue to get better, and using it daily now, someday I will be where I want to be with it...) so this structure and framework has been completely awesome for me. So what's next with preprocess...
I extended my preprocess_node a little more in my theme by adding a class to the page for the template. It was very similar, this time using the proprocess_page function. I am using Genesis as a basetheme, which means I needed to pass my 'classes' variable through the function and add my class to it, WHEN the node type was 'housing' or 'service'.
<code>
function MYTHEMENAME_preprocess_page(&$vars, $hook) {
/**
* Additional body classes to help out themers.
*/
$type = $vars['node']->type;
if ($type == 'housing' || $type == 'service') {
$vars['classes'] .= ' node-listing';
}
}
</code>
again, passing the variable by reference, and adding 'node-listing' to my page class which gives me some awesome power during theming. Yeah Genesis, Yeah Preprocess.
