Drupal 7 how to use item menu as MENU_LOCAL_TASK and MENU_NORMAL_ITEM simultaneous? I have hook_menu with 3 pages they are defined by default as MENU_NORMAL_ITEMs and I see them from in main menu:


$items['accounting'] = [
    'title' =&gt; 'Accounting',
    'page callback' =&gt; 'accounting_extras_unprocessed_page',
    'access arguments' =&gt; ['access accounting extras'],
    'file' =&gt; 'accounting.pages.inc',
    'type' =&gt; MENU_NORMAL_ITEM,
    'menu_name' =&gt; 'main-menu',
    'weight' =&gt; 10,
  ];

  $items['accounting/extras'] = [
    'title'   =&gt; 'Extras',
    'page callback' =&gt; 'accounting_extras_unprocessed_page',
    'access arguments' =&gt; ['access accounting extras'],
    'file' =&gt; 'accounting.pages.inc',
    'weight'  =&gt; 0,
    'menu_name' =&gt; 'main-menu',
  ];

  $items['accounting/report'] = [
    'title'            =&gt; 'Report',
    'page callback'    =&gt; 'drupal_get_form',
    'page arguments'   =&gt; ['accounting_report_form', 'report'],
    'access arguments' =&gt; ['access accounting report'],
    'file'             =&gt; 'forms/accounting_report.inc',
    'weight'           =&gt; 1,
    'menu_name'        =&gt; 'main-menu',
  ];

  $items['accounting/transfer'] = [
    'title'            =&gt; 'Internal transactions',
    'page callback'    =&gt; 'drupal_get_form',
    'page arguments'   =&gt; ['accounting_report_form', 'transfer'],
    'access arguments' =&gt; ['access accounting report'],
    'file'             =&gt; 'forms/accounting_report.inc',
    'weight'           =&gt; 2,
    'menu_name'        =&gt; 'main-menu',
  ];


But I also need to see them as MENU_LOCAL_TASK and if I add type = MENU_LOCAL_TASK then they disappear from menu and appear as local tasks


What to do to see them in both places? Thank you.
You can use a bitwise operator for that, e.g.

MENU_LOCAL_TASK | MENU_NORMAL_ITEM


There's a real-world example in the core comment module (comment_menu()):

$items['admin/content/comment'] = array(
  'title' =&gt; 'Comments',
  'description' =&gt; 'List and edit site comments and the comment approval queue.',
  'page callback' =&gt; 'comment_admin',
  'access arguments' =&gt; array('administer comments'),
  'type' =&gt; MENU_LOCAL_TASK | MENU_NORMAL_ITEM,
  'file' =&gt; 'comment.admin.inc',
);