AA
/**
* Implements hook_menu().
*/
function dummy_module_menu() {
$items = array();
$items['dummy'] = array(
'title' => 'dummy_module',
'page callback' => 'temp_output',
'access callback' => TRUE,
'weight' => 1
);
$items['dummy/new_tab1'] = array(
'title' => 'Current 1',
'type' => MENU_DEFAULT_LOCAL_TASK,
'page callback' => 'temp_output1',
'weight' => 2
);
$items['dummy/new_tab2'] = array(
'title' => 'Current 2',
'type' => MENU_LOCAL_TASK,
'page callback' => 'temp_output2',
'weight' => 3
);
return $items;
}
function temp_output() {
return 'Hello world!';
}
function temp_output1() {
return 'Hello world 1!';
}
function temp_output2() {
return 'Hello world 2!';
}