Why is drupal not changing the value when renderd after value change in preprocessor? I wrote a preprocessor for one of my views but when i change the title value the value in my view keeps the same! But dpm show the right modified title. Why is that...do i have to save something somewhere?

function mytheme_preprocess_views_view(&amp;$vars) {
    if (isset($vars['view']-&gt;name)) {
        $function = 'mytheme_preprocess_views_view__'.$vars['view']-&gt;name;
        if (function_exists($function)) {
            $function($vars);
        }
    }


function mytheme_preprocess_views_view__myviewname($vars) {
    //alter here that specific view
    $vars['view']-&gt;result[0]-&gt;field_field_title[0]['raw']['value']="Newtitle" ;
    dpm( $vars['view']-&gt;result[0]-&gt;field_field_title[0]['raw']['value']);

}
You need to pass $vars in by reference:

function mytheme_preprocess_views_view__myviewname(&amp;$vars) {