change views global text field conditionally I am trying to either show a text field or hide it depending on the date of another field in a view.
I am trying to use the views_pre_render hook and so far have:

function MODULE_NAME_views_pre_render(&amp;$view) {
if ($view-&gt;name == 'user_dashboards' &amp;&amp; $view-&gt;current_display == 'my_tutorials') 
{
    foreach ($view-&gt;result as $index =&gt; $value) 
    {
        $tutorialtime = strtotime($value-&gt;field_field_tr_tutorial_start[0]['raw']['value']);
        if($tutorialtime &lt; strtotime('now'))
        {
            $view-&gt;field['nothing']-&gt;options['alter']['text'] = '';

        }   
    }   
}


}

So I can successfully test whether to show the field or not, however I can't then change the field.  Using the code above changes every global text field in the view.  Is there a way to target just the row in the comparison?
Ok so credit goes to https://www.webfoobar.com/index.php/node/65 which basically gave me the answer.  The working code is as follows:

function MODULE_NAME_views_pre_render(&amp;$view) 
{
    if ($view-&gt;name == 'user_dashboards' &amp;&amp; $view-&gt;current_display == 'my_tutorials') 
    {
        foreach ($view-&gt;result as $index =&gt; $value) 
        {
            $tutorialtime = strtotime($value-&gt;field_field_tr_tutorial_start[$index]['raw']['value']);
            if($tutorialtime &lt; strtotime('now'))
            {
                $oldtutorials[] = $index;
            }           
        }
        $view-&gt;style_plugin-&gt;render_fields($view-&gt;result);
        foreach ($view-&gt;style_plugin-&gt;rendered_fields as $index =&gt; &amp;$rendered_result) 
        {
            if(in_array($index, $oldtutorials))
            {
                $rendered_result['nothing'] = '';
            }
        }
    }
}