You are here

function popups_test_menu in Popups API (Ajax Dialogs) 6

Same name and namespace in other branches
  1. 6.2 popups_test.module \popups_test_menu()

Implementation of hook_menu().

Return value

array of new menu items.

File

./popups_test.module, line 18
Page for testing the Popups API.

Code

function popups_test_menu() {

  // 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(
    'page callback' => '_popups_test_response',
    'type' => MENU_CALLBACK,
    'access callback' => TRUE,
  );
  $items['popups/test/namechange'] = array(
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      '_popups_test_namechange',
    ),
    'type' => MENU_CALLBACK,
    'access callback' => TRUE,
  );
  return $items;
}