You are here

function ds_render_markup in Display Suite 7

Same name and namespace in other branches
  1. 7.2 ds.module \ds_render_markup()

Render a markup field.

1 string reference to 'ds_render_markup'
ds_ds_fields_info in ./ds.ds_fields_info.inc
Implements hook_ds_fields_info().

File

./ds.module, line 1234
Display Suite core functions.

Code

function ds_render_markup($field) {
  if (isset($field['entity']->{$field['properties']['key']})) {

    // Check for format, and let's take filtered_html as a sane default.
    $format = isset($field['entity']->{$field['properties']['format']}) ? $field['entity']->{$field['properties']['format']} : 'filtered_html';
    return check_markup($field['entity']->{$field['properties']['key']}, $format, '', TRUE);
  }
}