How to change Omega subtheme's layout for a view I sense this can be done with Context etc, but it doesn't feel right to issue a few more modules for the job of a few lines of code.

Something like the following has to fit this:

function mytheme_omega_layout_alter(&amp;$layout) {
  if (arg(0) == 'node' &amp;&amp; is_numeric(arg(1)) 
      &amp;&amp; $node = node_load(arg(1)) &amp;&amp; $node-&gt;type == 'article') {
    $layout = 'article';
  }
  else if ($view = views_get_current_view() &amp;&amp; $view
      &amp;&amp; $view-&gt;name == 'term_content' &amp;&amp; $view-&gt;current_display == 'term_page') {
    $layout = 'term_page';
    print '&lt;pre&gt;';
    print_r($view);
    print '&lt;/pre&gt;'; 
  }
}


The problem here is, views_get_current_view() looks like it doesn't play well in this hook. I couldn't find any documentation.

I'll send best of my karma-pack to any contribution:) Cheers!
Wow wow, little bit syntax failure with the wrong function caused a disturbance in the force.

Here is how:

function mytheme_omega_layout_alter(&amp;$layout) {
  if (arg(0) == 'node' &amp;&amp; is_numeric(arg(1)) 
      &amp;&amp; $node = node_load(arg(1)) &amp;&amp; $node-&gt;type == 'article') {
    $layout = 'article';
  }
  else if (($view = views_get_page_view()) 
        &amp;&amp; $view-&gt;name == 'term_content' &amp;&amp; $view-&gt;current_display == 'term_page') {
    $layout = 'term_page';
  }
}


PS: This is going to the community wiki as the internets don't have an answer about it!