function theme_ds_field_minimal in Display Suite 7
Same name and namespace in other branches
- 7.2 modules/ds_extras/ds_extras.module \theme_ds_field_minimal()
Provide minimal HTML for the field.
File
- modules/
ds_extras/ ds_extras.module, line 402 - Display Suite extras main functions.
Code
function theme_ds_field_minimal($variables) {
$output = '';
$config = $variables['ds-config'];
// Add a simple wrapper.
$output .= '<div class="field field-name-' . strtr($variables['element']['#field_name'], '_', '-') . '">';
// Render the label.
if (!$variables['label_hidden']) {
$output .= '<div class="label-' . $variables['element']['#label_display'] . '">' . $variables['label'];
if (!isset($config['lb-col'])) {
$output .= ': ';
}
$output .= '</div>';
}
// Render the items.
foreach ($variables['items'] as $delta => $item) {
$output .= drupal_render($item);
}
$output .= "</div>";
return $output;
}