You are here

function ds_field_settings_summary in Display Suite 7

Same name and namespace in other branches
  1. 8.4 includes/field_ui.inc \ds_field_settings_summary()
  2. 8.2 includes/field_ui.inc \ds_field_settings_summary()
  3. 8.3 includes/field_ui.inc \ds_field_settings_summary()
  4. 7.2 includes/ds.field_ui.inc \ds_field_settings_summary()

Creates a summary for the field format configuration summary.

Parameters

$field: The configuration of the field.

Return value

$summary An markup array.

1 call to ds_field_settings_summary()
_ds_field_ui_fields in ./ds.field_ui.inc
Add the fields to the Field UI form.

File

./ds.field_ui.inc, line 804
Field UI functions for Display Suite.

Code

function ds_field_settings_summary($field) {
  $summary = module_invoke($field['module'], 'ds_field_format_summary', $field);
  return array(
    '#markup' => '<div class="field-formatter-summary">' . $summary . '</div>',
    '#cell_attributes' => array(
      'class' => array(
        'field-formatter-summary-cell',
      ),
    ),
  );
}