function ctools_contact_content_type_render

cis7 contact.inc ctools_contact_content_type_render($subtype, $conf, $panel_args, $context)
cle7 contact.inc ctools_contact_content_type_render($subtype, $conf, $panel_args, $context)
elmsmedia7 contact.inc ctools_contact_content_type_render($subtype, $conf, $panel_args, $context)
icor7 contact.inc ctools_contact_content_type_render($subtype, $conf, $panel_args, $context)
meedjum_blog7 contact.inc ctools_contact_content_type_render($subtype, $conf, $panel_args, $context)
mooc7 contact.inc ctools_contact_content_type_render($subtype, $conf, $panel_args, $context)

Render the custom content type.

File

sites/all/modules/ulmus/ctools/plugins/content_types/contact/contact.inc, line 20

Code

function ctools_contact_content_type_render($subtype, $conf, $panel_args, $context) {
  if (!user_access('access site-wide contact form')) {
    return;
  }
  // Build the content type block.
  $block = new stdClass();
  $block->module = 'contact';
  $block->delta = 'form';
  $block->title = t('Contact');

  module_load_include('inc', 'contact', 'contact.pages');
  $block->content = drupal_get_form('contact_site_form');
  return $block;
}