function popups_menu in Popups API (Ajax Dialogs) 7
Same name and namespace in other branches
- 5 popups.module \popups_menu()
- 6.2 popups.module \popups_menu()
- 6 popups.module \popups_menu()
hook_menu
Return value
array of new menu items.
File
- ./
popups.module, line 34 - popup.module
Code
function popups_menu() {
$items['admin/settings/popups'] = array(
'page callback' => 'drupal_get_form',
'page arguments' => array(
'popups_admin_settings',
),
'title' => 'Popups',
'access arguments' => array(
'administer site configuration',
),
'description' => 'Configure the page-in-a-dialog behavior.',
);
$items['popups/proxy'] = array(
'page callback' => '_popups_proxy',
'type' => MENU_CALLBACK,
'access callback' => TRUE,
);
// Items for testing.
$items['popups/test'] = array(
'title' => 'Popup Test',
'page callback' => '_popups_test_popups',
'type' => MENU_CALLBACK,
'access callback' => TRUE,
);
$items['popups/test/response'] = array(
'title' => 'Popup Test',
'page callback' => '_popups_test_response',
'type' => MENU_CALLBACK,
'access callback' => TRUE,
);
return $items;
}