Menu added not showing
If all you are trying is to add a menu item in main menu, you can implement hook_menu, code something as below.

function my_module_name_menu() {
  $items['test'] = array(
    'title'           =&gt; 'Tes Page',
    'description'     =&gt; t('Test'),
    'menu_name'       =&gt; 'main-menu',
    'weight'          =&gt; 8,
    'access callback' =&gt; TRUE,
    'page callback'   =&gt; '_my_module_name_test_page',
    'type' =&gt; MENU_NORMAL_ITEM,
  );

  return $items;
}

function _my_module_name_test_page() {
  return "hi";
}


Key is to have 'menu_name' =&gt; 'main-menu', in menu item declaration.