Remove status messages from content output? I want to move status messages into a region, but I can't seem to get it to stop being output as part of the main content output.

I tried this:

function mytheme_preprocess_region(&amp;$variables) {
  if ($variables['region'] == 'content' &amp;&amp; isset($variables['elements']['messages'])) {
    unset($variables['elements']['messages']);
    //$variables['elements']['messages']['#printed'] = FALSE;
  }
}


While that removed it from the array, it is still being rendered.
at /admin/structure/block, you can find the block "Status Messages" and move it to the "- None-" region, or another region of your choosing.