You are here

function theme_display_civicrm_contact in Webform CiviCRM Integration 7.4

Same name and namespace in other branches
  1. 7.5 includes/contact_component.inc \theme_display_civicrm_contact()
  2. 7.3 contact_component.inc \theme_display_civicrm_contact()

Theme function. Format the output of data for this component.

1 theme call to theme_display_civicrm_contact()
_webform_display_civicrm_contact in includes/contact_component.inc
Implements _webform_display_component().

File

includes/contact_component.inc, line 617

Code

function theme_display_civicrm_contact($variables) {
  $element = $variables['element'];
  $prefix = $element['#format'] == 'html' ? '' : $element['#field_prefix'];
  $suffix = $element['#format'] == 'html' ? '' : $element['#field_suffix'];
  return $element['#value'] !== '' ? $prefix . $element['#value'] . $suffix : ' ';
}