Hide menu item in specific block/region I have two instances of main_menu on a page. One is in the header, using superfish. The other is in the sidebar, using menu_block.

I want to hide a menu item in the sidebar and show it in the header. Is this possible?

Could you use template.php to target a block/region?

For example:

function my_theme_preprocess_block(&amp;$variables) {
  if ($variables['region'] == 'content' &amp;&amp; $variables['block']-&gt;module == 'menu_block') {
    // What would go in here?  
  }
}


Any help would be greatly appreciated.

Thanks,

Steve
If I were you, I'd rather do this in my module code to access the links data:

function mymodule_block_view_alter(&amp;$data, $block) {
  if($block-&gt;title == 'myblocktitle') {
    $data['content']['#content'][idofthenodelink]['#access'] = false;
  }
}


And your link will no longer be accessible.

Here is the dpm($data['content']['#content']) after the operation: