How can I hide node titles only for displayed nodes, and not node edit forms? I have a little function to hide my node titles via template.php:

function mytheme_alpha_preprocess_page(&amp;$vars) {
  if (isset($vars['node']) &amp;&amp; $vars['node']-&gt;type == 'episode') {
    $vars['title_hidden'] = TRUE;
  }}


This function hides the title on the node edit form too, but for that form I need a title.

How can I avoid changing the node edit form in my function?
You could add a check to see if you are editing the node, like

function mytheme_alpha_preprocess_page(&amp;$vars) {
  if (isset($vars['node']) &amp;&amp; $vars['node']-&gt;type == 'episode') {
    if(arg(2) != 'edit') {
        $vars['title_hidden'] = TRUE;
    }
  }
}