Example: Page
Same name in other branches
- 3.x modules/page_example/page_example.module \page_example
- 8.x-1.x page_example/page_example.module \page_example
- 7.x-1.x page_example/page_example.module \page_example
- 4.0.x modules/page_example/page_example.module \page_example
Create a page in a module. (Drupal 6)
This example demonstrates how a module can be used to display a custom page at a given URL.
This example is part of the Examples for Developers Project which you can download and experiment with here: http://drupal.org/project/examples
Parent topics
File
-
page_example/
page_example.module, line 9
Functions
Title Sort descending | File name | Summary |
---|---|---|
page_example_arguments | page_example/ |
A more complex page callback that takes arguments. |
page_example_custom_access_callback | page_example/ |
If your custom access callback function checks for permissions, it should still use user_access. You may add whatever additional logic you like, though. |
page_example_custom_access_page | page_example/ |
Page callback to demonstrate a custom access callback. |
page_example_description | page_example/ |
None of these page examples makes use of the Form API. The @link form_example.module Form Example @endlink provides examples that do. |
page_example_help | page_example/ |
Implementation of hook_help(). |
page_example_menu | page_example/ |
Implementation of hook_menu(). |
page_example_other_permissions | page_example/ |
Page callback to demonstrate checking for the 'access content' permission. |
page_example_perm | page_example/ |
Implementation of hook_perm(). |
page_example_simple | page_example/ |
A simple page callback. |