View of taxonomy terms - add preprocess class I have a view showing taxonomy terms with an images field. I'd like to add a class .has-images if the images field is not empty. 

I've done this before with nodes using preprocess, have tried something similar and have looked around for an answer though I can't seem to get it to work. Also where would the code go? would it go in a view.preprocess.inc file? 

This is an example of node.preprocess.inc 

function THEMENAME_preprocess_node(&amp;$vars) {
 if(!empty($vars['field_images'])) {
    $vars['classes_array'][] = 'has-images';
 }
}


Any help would be much appreciated.
You should try hook_views_pre_render(&amp;$view);
http://api.drupal.org/api/views/views.api.php/function/hook_views_pre_render/7

Also you can write a template file to write extra css class with condtion. For this go to advance section and go for theming section and choose a template name.