/** * views template for a special field field_category_value of view clinical_rated */ function theme_views_handle_field_node_data_field_category_field_category_value($fields, $field, $data) { //call the normal function $output = theme_views_handle_field($fields, $field, $data); switch ($output) { case 'Medical Journal/Scientific Publication': return 'Medical Journal/Scientific'; case 'Popular Press/News': return 'Popular Press/News'; case 'Blog': return 'Blog'; case 'Audio/Video': return 'Audio/Video'; default: return $output; } }