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