function render_example_embedded_form in Examples for Developers 7
Utility function to build a named form given a set of form elements.
This is a standard form builder function that takes an additional array, which is itself a form.
Parameters
array $form: Form API form array.
array $form_state: Form API form state array.
array $form_items: The form items to be included in this form.
Related topics
1 string reference to 'render_example_embedded_form'
- render_example_page_alter in render_example/
render_example.module - Implements hook_page_alter().
File
- render_example/
render_example.module, line 460 - Demonstrates render arrays.
Code
function render_example_embedded_form($form, &$form_state, $form_items) {
return $form_items;
}