contact.inc in Chaos Tool Suite (ctools) 7
File
plugins/content_types/contact/contact.inc
View source
<?php
if (module_exists('contact')) {
$plugin = array(
'single' => TRUE,
'title' => t('Contact form'),
'icon' => 'icon_contact.png',
'description' => t('The site contact form that allows users to send a message to site administrators.'),
'category' => t('Widgets'),
);
}
function ctools_contact_content_type_render($subtype, $conf, $panel_args, $context) {
if (!user_access('access site-wide contact form')) {
return;
}
$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;
}
function ctools_contact_content_type_edit_form($form, &$form_state) {
return $form;
}
function ctools_contact_content_type_edit_form_submit($form, &$form_state) {
}
function ctools_contact_content_type_admin_title($subtype, $conf, $context) {
return t('Contact form');
}