You are here

function page_example_simple in Examples for Developers 6

Same name and namespace in other branches
  1. 7 page_example/page_example.module \page_example_simple()

A simple page callback.

Page callbacks are required to return the entire page. The content is then usually output via a call to theme('page'), where the theme system will then surround the content in the appropriate blocks, navigation, and styling.

If you do not want to use the theme system (for example for outputting an image or XML), you should print the content yourself and not return anything.

Related topics

1 string reference to 'page_example_simple'
page_example_menu in page_example/page_example.module
Implementation of hook_menu().

File

page_example/page_example.module, line 215
This is an example outlining how a module can be used to display a custom page at a given URL.

Code

function page_example_simple() {
  return '<p>' . t('Simple page: The quick brown fox jumps over the lazy dog.') . '</p>';
}