what is the hook to preprocess a view?
You can use something along the lines of this:

MYMODULE_views_pre_render(&amp;$view) {

  if ($view-&gt;name=='NAMEOFTHEVIEW') {

    foreach($view-&gt;result as $r =&gt; $result) {
      // do whatever you want with each "row"
    }

  }

  // other views might go here

}


and this is certainly NOT a bad practice at all, and, at least IMHO, far superior to php fields in the view itself.