Example: Page

  1. drupal
    1. 8
    2. 6
    3. 7

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

menu_example

Functions & methods

NameDescription
page_example_argumentsA more complex page callback that takes arguments.
page_example_descriptionConstructs a descriptive page.
page_example_helpImplements hook_help().
page_example_menuImplements hook_menu().
page_example_permissionImplements hook_permission().
page_example_simpleConstructs a simple page.

examples/page_example/page_example.module, line 8