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

See also

backdrop_render()

Parent topics

File

modules/examples/render_example/render_example.module, line 7
Hook implementations for the Render Example module.

Functions

Namesort descending Location Description
render_example_add_prefix modules/examples/render_example/render_example.module A '#post_render' function to add a little markup onto the end markup.
render_example_add_suffix modules/examples/render_example/render_example.module A '#pre_render' function.
render_example_arrays modules/examples/render_example/render_example.module Provides a number of render arrays and show what they do.
render_example_cache_expensive modules/examples/render_example/render_example.module A potentially expensive function.
render_example_cache_pre_render modules/examples/render_example/render_example.module A '#pre_render' function.
render_example_info modules/examples/render_example/render_example.module Simple basic information about the module; an entry point.
render_example_menu modules/examples/render_example/render_example.module Implements hook_menu().
render_example_theme modules/examples/render_example/render_example.module Implements hook_theme().
theme_render_array modules/examples/render_example/render_example.module Themes the render array (from the demonstration page).
theme_render_example_add_div modules/examples/render_example/render_example.module Wraps a div around the already-rendered #children.
theme_render_example_add_notes modules/examples/render_example/render_example.module Wraps a div and add a little text after the rendered #children.
theme_render_example_aggregate modules/examples/render_example/render_example.module A #theme function.

Classes

Namesort descending Location Description
RenderExampleTestCase modules/examples/render_example/tests/render_example.test Functional tests for the Render Example module.