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
Parent topics
File
- modules/
examples/ page_example/ page_example.module, line 7 - Hook implementations for the Page Example module.
Functions
Name | Location | Description |
---|---|---|
page_example_permission |
modules/ |
Implements hook_permission(). |
page_example_menu |
modules/ |
Implements hook_menu(). |
page_example_description |
modules/ |
Constructs a descriptive page. |
page_example_simple |
modules/ |
Constructs a simple page. |
page_example_arguments |
modules/ |
A more complex page callback that takes arguments. |
Classes
Name | Location | Description |
---|---|---|
PageExampleTestCase |
modules/ |
Functional tests for the Page Example module. |