page_example_foo

Versions
4.6 – 7
page_example_foo()

A simple page callback.

Page callbacks are required to print the entire page. This is usually accomplished via a call to theme('page'), passing the page content as a parameter. The theme system will then surround the content in the appropriate blocks, navigation, and styling.

Code

developer/examples/page_example.module, line 110

<?php
function page_example_foo() {
  $content = '<p>The quick brown fox jumps over the lazy dog.</p>';
  print theme('page', $content);
}
?>
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.