How to edit views content before rendering the view. This is what you need in your Drupal 7 module.
Source code viewer
/** * Implements hook_views_pre_render(). */ function hook_views_pre_render(&$view) { // Change view_machine_name to your views machine name. You have to take pages in consideration as well. if ($view->name === 'view_machine_name') { } }Programming Language: PHP