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


modules/examples/page_example/page_example.module, line 7
Hook implementations for the Page Example module.


Name Locationsort descending Description
page_example_permission modules/examples/page_example/page_example.module Implements hook_permission().
page_example_menu modules/examples/page_example/page_example.module Implements hook_menu().
page_example_description modules/examples/page_example/page_example.module Constructs a descriptive page.
page_example_simple modules/examples/page_example/page_example.module Constructs a simple page.
page_example_arguments modules/examples/page_example/page_example.module A more complex page callback that takes arguments.


Name Locationsort descending Description
PageExampleTestCase modules/examples/page_example/tests/page_example.test Functional tests for the Page Example module.