url_alter_test.module

Module to help test altering the inbound and outbound path.

File

drupal/core/modules/system/tests/modules/url_alter_test/url_alter_test.module
View source
<?php

/**
 * @file
 * Module to help test altering the inbound and outbound path.
 */

/**
 * Implements hook_menu().
 */
function url_alter_test_menu() {
  $items['url-alter-test/foo'] = array(
    'title' => 'Foo',
    'page callback' => 'url_alter_test_foo',
    'access arguments' => array(
      'access content',
    ),
    'type' => MENU_CALLBACK,
  );
  return $items;
}

/**
 * Menu callback.
 */
function url_alter_test_foo() {
  print 'current_path=' . current_path() . ' request_path=' . request_path();
  exit;
}

Functions

Namesort descending Description
url_alter_test_foo Menu callback.
url_alter_test_menu Implements hook_menu().