Example: Render

Same name in other branches
  1. 3.x modules/render_example/render_example.module \render_example
  2. 4.0.x modules/render_example/render_example.module \render_example

Demonstrate how render arrays are arranged and how they can be altered. This alters blocks and the page to show the actual render array that is being used to create each item.

See also

drupal_render()

Parent topics

File

render_example/render_example.module, line 8

Functions

Title Sort descending File name Summary
render_example_add_hr render_example/render_example.module Alter the rendered output after all other theming.
render_example_add_prefix render_example/render_example.module A '#post_render' function to add a little markup onto the end markup.
render_example_add_suffix render_example/render_example.module A '#pre_render' function.
render_example_arrays render_example/render_example.module Provides a number of render arrays and show what they do.
render_example_cache_expensive render_example/render_example.module A potentially expensive function.
render_example_cache_pre_render render_example/render_example.module A '#pre_render' function.
render_example_change_to_ol render_example/render_example.module Adds a #type to the element before it gets rendered.
render_example_demo_form render_example/render_example.module Builds the form that offers options of what items to show.
render_example_embedded_form render_example/render_example.module Utility function to build a named form given a set of form elements.
render_example_info render_example/render_example.module Simple basic information about the module; an entry point.
render_example_menu render_example/render_example.module Implements hook_menu().
render_example_page_alter render_example/render_example.module Implements hook_page_alter().
render_example_theme render_example/render_example.module Implements hook_theme().
theme_render_array render_example/render_example.module Themes the render array (from the demonstration page).
theme_render_example_add_div render_example/render_example.module Wraps a div around the already-rendered #children.
theme_render_example_add_notes render_example/render_example.module Wraps a div and add a little text after the rendered #children.
theme_render_example_aggregate render_example/render_example.module A #theme function.

Classes

Title Sort descending File name Summary
RenderExampleTestCase render_example/render_example.test Functional tests for the Render Example module.