Custom Menu Block programmatically

Public
</> CopyGet raw version
php
  1. function hook_menu_block_blocks() {
  2. return array(
  3.  
  4. 'sidebar-navigation-3' => array(
  5. // Use the array keys/values described in menu_tree_build().
  6. 'menu_name' => 'main-menu',
  7. 'parent_mlid' => 0,
  8. 'title_link' => FALSE,
  9. 'admin_title' => 'Internal pages leftside bar menu',
  10. 'level' => 1,
  11. 'depth' => 9,
  12. 'expanded' => TRUE,
  13. 'sort' => FALSE,
  14. ),
  15. );
  16. }