Display contact form

Public

Print contact form in templates (pages, nodes, blocks)

</> CopyGet raw version
php
  1. require_once drupal_get_path('module', 'contact') .'/contact.pages.inc';
  2. print drupal_render(drupal_get_form('contact_site_form'));

Comments

Happensit's picture

  1. module_load_include('inc', 'contact', 'contact.pages');
  2. print drupal_get_form('contact_site_form');
  3. <php>