A
A
Alexander Timofeev2014-01-04 17:27:27
Drupal
Alexander Timofeev, 2014-01-04 17:27:27

How to display a feedback form in Drupal 7 (for example, on the contact module) on a page?

Everywhere it is written how to set up this form and display it through a separate menu item on a separate generated page, but I need to display this form on a single main page (there is no menu on this page). Those. what code should be put in the page.tpl.php file to display this form?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
andead, 2014-01-04
@aldtimofeev

module_load_include('inc', 'contact', 'contact.pages');
$form = drupal_get_form('contact_site_form');
echo render($form);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question