function theme_display_civicrm_contact in Webform CiviCRM Integration 7.3
Same name and namespace in other branches
- 7.5 includes/contact_component.inc \theme_display_civicrm_contact()
- 7.4 includes/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 ./
contact_component.inc - Implements _webform_display_component().
File
- ./
contact_component.inc, line 453
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 : ' ';
}