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
Parent topics
File
- modules/
examples/ render_example/ render_example.module, line 7 - Hook implementations for the Render Example module.
Functions
Name | Location | Description |
---|---|---|
render_example_add_prefix |
modules/ |
A '#post_render' function to add a little markup onto the end markup. |
render_example_add_suffix |
modules/ |
A '#pre_render' function. |
render_example_arrays |
modules/ |
Provides a number of render arrays and show what they do. |
render_example_cache_expensive |
modules/ |
A potentially expensive function. |
render_example_cache_pre_render |
modules/ |
A '#pre_render' function. |
render_example_info |
modules/ |
Simple basic information about the module; an entry point. |
render_example_menu |
modules/ |
Implements hook_menu(). |
render_example_theme |
modules/ |
Implements hook_theme(). |
theme_render_array |
modules/ |
Themes the render array (from the demonstration page). |
theme_render_example_add_div |
modules/ |
Wraps a div around the already-rendered #children. |
theme_render_example_add_notes |
modules/ |
Wraps a div and add a little text after the rendered #children. |
theme_render_example_aggregate |
modules/ |
A #theme function. |
Classes
Name | Location | Description |
---|---|---|
RenderExampleTestCase |
modules/ |
Functional tests for the Render Example module. |