You are here

function theme_ds_field_reset in Display Suite 7.2

Same name and namespace in other branches
  1. 7 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.module
Implements hook_ds_field_settings_alter().
ds_extras_settings in modules/ds_extras/includes/ds_extras.admin.inc
Menu callback: Display Suite extras settings.

File

modules/ds_extras/ds_extras.module, line 730
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 .= ':&nbsp;';
    }
    $output .= '</div>';
  }

  // Render the items.
  foreach ($variables['items'] as $delta => $item) {
    $output .= drupal_render($item);
  }
  return $output;
}