function page_example_simple

Constructs a simple page.

The simple page callback, mapped to the path 'examples/page_example/simple'.

Page callbacks return a renderable array with the content area of the page. The theme system will later render and 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
Implements hook_menu().

File

page_example/page_example.module, line 167

Code

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