[documentation] [feature] form_render() fails to expand element
#option fields
sime
drupal-docs at drupal.org
Tue Mar 21 14:50:31 UTC 2006
Issue status update for
http://drupal.org/node/54332
Post a follow up:
http://drupal.org/project/comments/add/54332
-Project: Drupal
+Project: Documentation
Version: <none>
-Component: forms system
+Component: Developer Guide
-Category: bug reports
+Category: feature requests
Priority: normal
Assigned to: Anonymous
Reported by: Signe
Updated by: sime
Status: active
The description of form_render says that this function is usually called
from within a theme.
http://drupaldocs.org/api/head/function/form_render
I believe that form_render requires a different structure of $form to
the example you have built and you should indeed use drupal_get_form();
I am tentatively assigning this to Documentation queue.
sime
Previous comments:
------------------------------------------------------------------------
Thu, 16 Mar 2006 11:40:22 +0000 : Signe
<?php
$form['test'] = array(
'#type' => 'radios',
'#title' => t('Test Radios'),
'#options' => array(
t('Test 1'),
t('Test 2'),
t('Test 3'),
),
);
form_render($form);
?>
Outputs
<div class="form-item">
<label>Test Radios:</label>
</div>
Using "drupal_get_form()" functions correctly, but is not mentioned in
*any* of the Form API documentation, while form_render() is mentioned
numerous times.
One forum post mentions its correct use:
http://drupal.org/node/49778#comment-95502
More information about the documentation
mailing list