Drupal 7 How to make the value of a user field (site_path/admin/people) dependent on user role
Please never ever use something that uses eval(). Even if you don't migh related security problems because nobody else has access to your site eval() is very very slow.

What you are looking for is hook_views_pre_render()

or a preprocess hok for the specific field. There are plenty examples if you use google.