5.x form.inc drupal_render_form($form_id, &$form)
6.x form.inc drupal_render_form($form_id, &$form)

Renders a structured form array into themed HTML.


$form_id: A unique string identifying the form for validation, submission, theming, and hook_form_alter functions.

$form: An associative array containing the structure of the form.

Return value

A string containing the themed HTML.

Related topics

1 call to drupal_render_form()
drupal_get_form in includes/form.inc
Retrieves a form from a constructor function, or from the cache if the form was built in a previous page-load. The form is then passed on for processing, after and rendered for display if necessary.


includes/form.inc, line 656


function drupal_render_form($form_id, &$form) {

  // Don't override #theme if someone already set it.
  if (!isset($form['#theme'])) {
    $registry = theme_get_registry();
    if (isset($registry[$form_id])) {
      $form['#theme'] = $form_id;
  $output = drupal_render($form);
  return $output;


mrf’s picture

Now you need something along the lines of:

mike42us’s picture

If your Australian you'll understand this, if not, my apologies. I'm looking for American Dave/Drago, I was a young American friend of his in 1996-1998. He should remember me. Thank you!