function plug_example_menu in Plug 7
Implements hook_menu().
File
- modules/
plug_example/ plug_example.module, line 14 - Module implementation file.
Code
function plug_example_menu() {
$items['plug/test'] = array(
'title' => 'Plugins example',
'description' => 'Plugins example page.',
'page callback' => 'plug_example_annotation_test_page',
'access callback' => TRUE,
'type' => MENU_NORMAL_ITEM,
);
$items['plug/test/annotation'] = array(
'title' => 'Annotation',
'description' => 'Plugins annotation page.',
'page callback' => 'plug_example_annotation_test_page',
'access callback' => TRUE,
'type' => MENU_DEFAULT_LOCAL_TASK,
);
$items['plug/test/yaml'] = array(
'title' => 'YAML',
'description' => 'Plugins YAML page.',
'page callback' => 'plug_example_yaml_test_page',
'access callback' => TRUE,
'type' => MENU_LOCAL_TASK,
);
return $items;
}