0

I have a view with a date field that I would like to move back a few minutes e.g. $timestamp - 60.

I run hook_views_post_execute() but, when I look at $view it already has rendered markup in it:

$view->result[0]->field_field_end_date[0]['rendered']['#markup'] ==>> '<span class="date-display-interval">0 sec</span>

The documentation states "This hook is called right after the execute process. The query has been executed, but the pre_render() phase has not yet happened for handlers."

What gives?

To solve this problem. I need to add/subtract from the "raw" value before it is rendered.

How can I do this?

Thanks.

0

Try hook_preprocess_views_view_fields

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.