| 1 |
<?php |
<?php |
| 2 |
// $Id: webform.module,v 1.138 2009/11/06 00:27:40 quicksketch Exp $ |
// $Id: webform.module,v 1.139 2009/11/06 00:38:09 quicksketch Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* This module provides a simple way to create forms and questionnaires. |
* This module provides a simple way to create forms and questionnaires. |
| 1684 |
* The current amount of indentation being applied to printed components. |
* The current amount of indentation being applied to printed components. |
| 1685 |
*/ |
*/ |
| 1686 |
function theme_webform_mail_fields($cid, $value, $node, $indent = "") { |
function theme_webform_mail_fields($cid, $value, $node, $indent = "") { |
| 1687 |
$component = $node->webform['components'][$cid]; |
$component = $cid ? $node->webform['components'][$cid] : null; |
| 1688 |
|
|
| 1689 |
// Check if this component needs to be included in the email at all. |
// Check if this component needs to be included in the email at all. |
| 1690 |
if ($cid && !$component['email'] && !in_array($component['type'], array('markup', 'fieldset', 'pagebreak'))) { |
if ($cid && !$component['email'] && !in_array($component['type'], array('markup', 'fieldset', 'pagebreak'))) { |