how to get the values of a view in _preprocess_views_view_fields drupal7 I have a view of multiple content types. I only select the name and an image from those content types so I'm sure what the format of output is going to be. how can I get the field values of view in MYTHEME_preprocess_views_view_fields?

kpr() function doesn't work here because for every content type there is a specific name for fields, say for content type A and B it is field_A_name and field_B_name.

thanks
hope this will help,

     function yourtheme_preprocess_views_view_fields(&amp;$vars) {
    if ($vars[view] -&gt; name == 'yourviewname') {
         foreach ($vars[view]-&gt;result as $key =&gt; $value) {
            kpr($value -&gt; field_field_name['0']);//here you will get the name field RAW value and  RENDERED value in array.
        }
    }
}