How do I implement hook_views_pre_render()?
You need to read and understand the Module developer's guide first, then it's as simple as adding the following to your .module file:

function MYMODULE_views_pre_render(&amp;$view) {
  // Do stuff with the $view object.
}