I am trying to do a custom sort on a view, and I've read that I should be using the hook_views_pre_build. I have my module with the code below, but it isn't doing anything. I've tried to print, drupal_set_message, and exit, and it doesn't look like it's getting run. I've built lots of modules before, so I am confident the module is set up right, but I've never used this hook.
Just as a little bit of extra background, I have a video content type, and it is related to a company. I want to sort the video listing so videos whose related companies are published show up before the companies that aren't published. Is this even the right way to do it?