How to alert views output using custom module
hook_views_pre_render() gets the $view object passed by reference. This means that if you change the $view object inside your hook_views_pre_render() function, it doesn't need to be returned or saved or re-executed or anything. The view object itself, the same one that is rendered, is the one you're altering.