Same name and namespace in other branches
- 8.x-1.x 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
Parent topics
File
- render_example/
render_example.module, line 8 - Demonstrates render arrays.
Functions
Name | Location | Description |
---|---|---|
render_example_menu |
render_example/ |
Implements hook_menu(). |
render_example_info |
render_example/ |
Simple basic information about the module; an entry point. |
render_example_arrays |
render_example/ |
Provides a number of render arrays and show what they do. |
render_example_cache_pre_render |
render_example/ |
A '#pre_render' function. |
render_example_cache_expensive |
render_example/ |
A potentially expensive function. |
render_example_add_suffix |
render_example/ |
A '#pre_render' function. |
render_example_add_prefix |
render_example/ |
A '#post_render' function to add a little markup onto the end markup. |
theme_render_example_aggregate |
render_example/ |
A #theme function. |
render_example_demo_form |
render_example/ |
Builds the form that offers options of what items to show. |
render_example_page_alter |
render_example/ |
Implements hook_page_alter(). |
render_example_embedded_form |
render_example/ |
Utility function to build a named form given a set of form elements. |
render_example_theme |
render_example/ |
Implements hook_theme(). |
theme_render_example_add_div |
render_example/ |
Wraps a div around the already-rendered #children. |
theme_render_example_add_notes |
render_example/ |
Wraps a div and add a little text after the rendered #children. |
theme_render_array |
render_example/ |
Themes the render array (from the demonstration page). |
render_example_change_to_ol |
render_example/ |
Adds a #type to the element before it gets rendered. |
render_example_add_hr |
render_example/ |
Alter the rendered output after all other theming. |
Classes
Name | Location | Description |
---|---|---|
RenderExampleTestCase |
render_example/ |
Functional tests for the Render Example module. |