You are here

function theme_webform_display_phonefield in Webform Phone Number 7.2

Same name and namespace in other branches
  1. 7 webform_phone.components.inc \theme_webform_display_phonefield()

Format the output of data for this component.

1 theme call to theme_webform_display_phonefield()
_webform_display_phone in ./webform_phone.components.inc
Display the result of a submission for a component. The output of this function will be displayed under the "Results" tab then "Submissions". This should output the saved data in some reasonable manner.

File

./webform_phone.components.inc, line 261
Webform Component information for a phone number field type

Code

function theme_webform_display_phonefield($variables) {
  $markup = array();
  $element = $variables['element'];
  $rendered_output = drupal_render($element['#markup']);
  if ($element['#format'] == 'html') {
    $markup['#markup'] = $rendered_output;
  }
  else {
    $markup['#markup'] = check_plain($rendered_output);
  }
  return drupal_render($markup);
}