You are here

function theme_webform_mail_textfield in Webform 6.2

Same name and namespace in other branches
  1. 5.2 components/textfield.inc \theme_webform_mail_textfield()

Format the output of emailed data for this component

Parameters

$data: A string or array of the submitted data

$component: An array of information describing the component, directly correlating to the webform_component database schema.

Return value

string Textual output to be included in the email.

File

components/textfield.inc, line 172
Webform module textfield component.

Code

function theme_webform_mail_textfield($data, $component) {
  $value = $data == '' ? '' : ' ' . $component['extra']['field_prefix'] . $data . $component['extra']['field_suffix'];
  return $component['name'] . ':' . $value;
}