function popup_test_menu in Popup 7
Same name and namespace in other branches
- 7.x modules/popup_test/popup_test.module \popup_test_menu()
- 6.x modules/popup_test/popup_test.module \popup_test_menu()
Implementation of hook_menu
File
- modules/
popup_test/ popup_test.module, line 8
Code
function popup_test_menu() {
$path = drupal_get_path('module', 'popup_test');
return array(
'test/popup' => array(
'access arguments' => array(
'administer popup elements',
),
'file' => 'popup_test.pages.inc',
'file path' => $path . '/includes',
'page callback' => 'popup_test_position',
'title' => 'Popup test pages',
'type' => MENU_NORMAL_ITEM,
'weight' => 0,
),
'test/popup/position' => array(
'access arguments' => array(
'administer popup elements',
),
'title' => 'Positioning',
'type' => MENU_DEFAULT_LOCAL_TASK,
),
'test/popup/effects' => array(
'access arguments' => array(
'administer popup elements',
),
'file' => 'popup_test.pages.inc',
'file path' => $path . '/includes',
'page callback' => 'popup_test_effects',
'title' => 'Effects',
'type' => MENU_LOCAL_TASK,
'weight' => 1,
),
'test/popup/styles' => array(
'access arguments' => array(
'administer popup elements',
),
'file' => 'popup_test.pages.inc',
'file path' => $path . '/includes',
'page callback' => 'popup_test_styles',
'title' => 'Styles',
'type' => MENU_LOCAL_TASK,
'weight' => 2,
),
'test/popup/nesting' => array(
'access arguments' => array(
'administer popup elements',
),
'file' => 'popup_test.pages.inc',
'file path' => $path . '/includes',
'page callback' => 'popup_test_nesting',
'title' => 'Nesting',
'type' => MENU_LOCAL_TASK,
'weight' => 3,
),
'test/popup/activation' => array(
'access arguments' => array(
'administer popup elements',
),
'file' => 'popup_test.pages.inc',
'file path' => $path . '/includes',
'page callback' => 'popup_test_activation',
'title' => 'Activation',
'type' => MENU_LOCAL_TASK,
'weight' => 4,
),
'test/popup/content' => array(
'access arguments' => array(
'administer popup elements',
),
'file' => 'popup_test.pages.inc',
'file path' => $path . '/includes',
'page callback' => 'popup_test_content',
'title' => 'Content',
'type' => MENU_LOCAL_TASK,
'weight' => 5,
),
'test/popup/ajax' => array(
'access arguments' => array(
'administer popup elements',
),
'file' => 'popup_test.pages.inc',
'file path' => $path . '/includes',
'page callback' => 'popup_test_ajax',
'title' => 'AJAX',
'type' => MENU_LOCAL_TASK,
'weight' => 6,
),
);
}