I have a view with field Global: Custom Text, which is modified as a link. I want to change replacement tokens for generating this link, dependent on a value of other field.
Tried to modify this in hook_views_pre_render but I can't find a way to do this.
In hook_views_post_render there are two arrays:
$view->style_plugin->render_tokens
$view->style_plugin->row_tokens
which contains generated links for every row, but they are not present in pre_render, and changing them in post_render doesn't work.
I've also tried to do that in template_preprocess_views_view_fields but for that specific view this function does not firing (for other views it does), and I don't know why.