README.html 1.1 KB

1234567891011121314151617181920212223242526
  1. <h2><a href="http://drupal.org/project/echo">Echo</a></h2>
  2. <p>Wraps content in a themed webpage.</p>
  3. <p>This very simple module contains only one externally useful function:</p>
  4. <dl>
  5. <dt><code>echo_themed_page($title, $content, $theme)</code></dt>
  6. <dd>
  7. <p>Returns a page themed for the anonymous user.</p>
  8. <p>Generates the text of a fully-themed Drupal page. The rendered page is returned as a text string instead of being sent to the browser. The theme system can thus be used to style any HTML message as if it had been generated by the live website.</p>
  9. <dl>
  10. <dt><strong>Parameters</strong></dt>
  11. <dd>
  12. <p><code>$title</code> The text to display as the page title.</p>
  13. </dd>
  14. <dd>
  15. <p><code>$content</code> The text to display in the main page content region.</p>
  16. </dd>
  17. <dd>
  18. <p><code>$theme</code> The machine-readable name of the theme to use.</p>
  19. </dd>
  20. <dt><strong>Return value</strong></dt>
  21. <dd>
  22. <p>A string containing the fully-themed page.</p>
  23. </dd>
  24. </dl>
  25. </dd>
  26. </dl>