page_example_foo

Versions
4.6 – 7
page_example_foo()

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.

Code

developer/examples/page_example.module, line 104

<?php
function page_example_foo() {
  return '<p>'. t('The quick brown fox jumps over the lazy dog.') .'</p>';
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.