function theme_addressfield_phone_container in Address Field Phone 7
Render a container for a set of address fields.
File
- ./
addressfield_phone.module, line 368 - Add additional phone fields to addressfield.
Code
function theme_addressfield_phone_container($variables) {
$element = $variables['element'];
$element['#children'] = trim($element['#children']);
if (strlen($element['#children']) > 0) {
$output = '<' . $element['#tag'] . drupal_attributes($element['#attributes']) . '>';
$output .= '<span class="addressfield-phone-label">' . $element['#title'] . ': </span>' . $element['#children'] . '';
$output .= '</' . $element['#tag'] . ">";
return $output;
}
else {
return '';
}
}