I have been trying to get a quick easy way to redirect the user, no matter where they go to the site straight to the user login page. But before I do, I want to redirect them to another page saying some message like "Sorry, you need to be authenticated to view blah blah... you are being redirected to the login page".
I currently have:
function mytheme_preprocess_page(&$vars, $hook) {
global $user;
if ($user->uid == 0 && arg(0) != 'user'){
drupal_goto('user/login');
}
}