You are here

function update_test_menu in Drupal 7

Implements hook_menu().

File

modules/update/tests/update_test.module, line 21
Module for testing Update Manager functionality.

Code

function update_test_menu() {
  $items = array();
  $items['update-test'] = array(
    'title' => t('Update test'),
    'page callback' => 'update_test_mock_page',
    'access callback' => TRUE,
    'type' => MENU_CALLBACK,
  );
  $items['503-error'] = array(
    'title' => t('503 Service unavailable'),
    'page callback' => 'update_callback_service_unavailable',
    'access callback' => TRUE,
    'type' => MENU_CALLBACK,
  );
  return $items;
}