For a certain content type, I want to alter the access denied error message. What is the best way to go about doing this?
function mytheme_preprocess_page(&$vars) {
if ($vars['title'] == 'Access denied' && $node->type == 'ODP') {
$vars['content'] = 'OMG WHAT R U DOING!1!?!!1';
}
I was hoping to do something like that. However, after a print_r(get_defined_vars())
, I was unable to find anything that could help me figure out what type the node being displayed is.