Example: Page

Same name in other branches
  1. 3.x modules/page_example/page_example.module \page_example
  2. 8.x-1.x page_example/page_example.module \page_example
  3. 6.x-1.x page_example/page_example.module \page_example
  4. 4.0.x modules/page_example/page_example.module \page_example

This example demonstrates how a module can display a page at a given URL.

It's important to understand how the menu system works in order to implement your own pages. See the Menu Example module for some insight.

See also

Example: Menu

Parent topics

File

page_example/page_example.module, line 8

Functions

Title Sort descending File name Summary
page_example_arguments page_example/page_example.module A more complex page callback that takes arguments.
page_example_description page_example/page_example.module Constructs a descriptive page.
page_example_help page_example/page_example.module Implements hook_help().
page_example_menu page_example/page_example.module Implements hook_menu().
page_example_permission page_example/page_example.module Implements hook_permission().
page_example_simple page_example/page_example.module Constructs a simple page.

Classes

Title Sort descending File name Summary
PageExampleTestCase page_example/page_example.test Functional tests for the Page Example module.