Display output with Form in Drupal

Hello,

    To show you description text with drupal form you have to use drupal_get_form hook.(in drupal 6)

function <your function name>{

  $output  = "your Dummy text will be show top of form";
  $output .= drupal_get_form('<your form name>');
  $output .= "your Dummy text will be show bottom of form";

  return $output;
 }

For drupal 7 method will slitly change.

$output .= drupal_render(drupal_get_form('module_addCategory_form'));
 

 

Tags: 
X