No Tab Link

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
cithukyaw's picture

Hi,

I have hook_menu() similar to this form example tutorial, but no local tasks are rendered as tabs. What happen ?

$items['examples/form_example/tutorial'] = array(
'title' => t('Tutorial'),
'page callback' => 'drupal_get_form',
'page arguments' => array('form_example_tutorial_1'),
'access callback' => TRUE,
'description' => t('A set of ten tutorials'),
'file' => 'form_example_tutorial.inc',
'weight' => -20,
);
$items['examples/form_example/tutorial/1'] = array(
'title' => t('#1'),
'page callback' => 'drupal_get_form',
'page arguments' => array('form_example_tutorial_1'),
'access callback' => TRUE,
'description' => t('Tutorial 1: Simplest form'),
'type' => MENU_DEFAULT_LOCAL_TASK,
'file' => 'form_example_tutorial.inc',
);
$items['examples/form_example/tutorial/2'] = array(
'title' => t('#2'),
'page callback' => 'drupal_get_form',
'page arguments' => array('form_example_tutorial_2'),
'access callback' => TRUE,
'description' => t('Tutorial 2: Form with a submit button'),
'type' => MENU_LOCAL_TASK,
'file' => 'form_example_tutorial.inc',
);