function theme_ds_field_reset in Display Suite 7
Same name and namespace in other branches
- 7.2 modules/ds_extras/ds_extras.module \theme_ds_field_reset()
Reset all HTML for the field.
3 string references to 'theme_ds_field_reset'
- dsNodeTests::testDSFieldTemplate in tests/
ds.entities.test - Tests on field templates.
- ds_extras_ds_field_settings_alter in modules/
ds_extras/ ds_extras.admin.inc - Implements hook_ds_field_settings_alter().
- ds_extras_settings in modules/
ds_extras/ ds_extras.admin.inc - Menu callback: Display Suite extras settings.
File
- modules/
ds_extras/ ds_extras.module, line 379 - Display Suite extras main functions.
Code
function theme_ds_field_reset($variables) {
$output = '';
// Render the label.
if (!$variables['label_hidden']) {
$output .= '<div class="label-' . $variables['element']['#label_display'] . '">' . $variables['label'];
if (!variable_get('ft-kill-colon', FALSE)) {
$output .= ': ';
}
$output .= '</div>';
}
// Render the items.
foreach ($variables['items'] as $delta => $item) {
$output .= drupal_render($item);
}
return $output;
}