function popups_menu in Popups API (Ajax Dialogs) 6
Same name and namespace in other branches
- 5 popups.module \popups_menu()
- 6.2 popups.module \popups_menu()
- 7 popups.module \popups_menu()
Implementation of hook_menu().
Return value
array of new menu items.
File
- ./
popups.module, line 22 - This module provides a hook_popups for links to be openned in an Ajax Popup Dialog.
Code
function popups_menu() {
// Themable page save dialog.
$items['popups/save_dialog'] = array(
'page callback' => 'theme',
'page arguments' => array(
'popup_save_dialog',
),
'access callback' => TRUE,
'type' => MENU_CALLBACK,
);
// Admin Settings.
$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.',
);
return $items;
}