
The webform module in Drupal gives you a great set of tools to let you create HTML forms with ease with a drag and drop interface for most of the commonly used HTML form elements. Since it is considered as another content type the forms are usually placed in a separate page of its own. Usually that is all that is required, but there are scenarios where you need to embed the webform in another content type like a page. Here is how to do it.
First you need to create a custom module to write the code to embed the form in a page or add it to an existing custom module.