Skip to content

Instantly share code, notes, and snippets.

@jeffam
Last active December 18, 2015 17:19
Show Gist options
  • Save jeffam/5817830 to your computer and use it in GitHub Desktop.
Save jeffam/5817830 to your computer and use it in GitHub Desktop.
Default Menu Blocks
<?php
/**
* Implements hook_menu_block_blocks().
*/
function sidebar_menu_menu_block_blocks() {
// The array key is the block delta used by menu block.
return array(
'sidebar_subnav' => array(
'title_link' => TRUE,
'admin_title' => 'Current Menu Children',
'menu_name' => MENU_TREE__CURRENT_PAGE_MENU,
'level' => 2,
'follow' => 0,
'depth' => 0,
'expanded' => TRUE,
'sort' => FALSE,
'parent_mlid' => 0,
),
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment