Menu tasks

  1. // I want local tasks to appear… but it doesn't seem to be working very reliably!
  2.  
  3. // This works.
  4.   $items['admin/subscriptions'] = array(
  5.     'title'            => 'Mollom subscriptions',
  6.     'page callback'    => 'subscriptions_admin',
  7.     'access arguments' => array('administer site configuration'),
  8.     'type'             => MENU_NORMAL_ITEM,
  9.     'file'             => 'subscriptions.admin.inc',
  10.   );
  11.   $items['admin/subscriptions/overview'] = array(
  12.     'title'            => 'Overview',
  13.     'access arguments' => array('administer site configuration'),
  14.     'weight'           => -10,
  15.     'type'             => MENU_DEFAULT_LOCAL_TASK,
  16.     'file'             => 'subscriptions.admin.inc',
  17.   );
  18.  
  19. // This does not work.
  20.   $items['site-manager'] = array(
  21.     'title'            => 'Site manager',
  22.     'page callback'    => 'subscriptions_keys_overview',
  23.     'access arguments' => array('access site manager'),
  24.     'type'             => MENU_SUGGESTED_ITEM,
  25.     'file'             => 'subscriptions.sitemanager.inc',
  26.   );
  27.   $items['site-manager/list'] = array(
  28.     'title'            => 'List',
  29.     'type'             => MENU_DEFAULT_LOCAL_TASK,
  30.     'access arguments' => array('access site manager'),
  31.     'weight'           => -10,
  32.     'file'             => 'subscriptions.sitemanager.inc',
  33.   );