You are here

function ds_field_human_name in Display Suite 7

Same name and namespace in other branches
  1. 7.2 modules/ds_ui/includes/ds.fields.inc \ds_field_human_name()

Return the human name of a field.

Return value

$human_name The human name of a field.

1 call to ds_field_human_name()
ds_custom_fields_list in ./ds.fields.inc
Shows the list of custom fields.

File

./ds.fields.inc, line 63
Administrative functions for managing custom fields for every entity.

Code

function ds_field_human_name($type) {
  switch ($type) {
    case DS_FIELD_TYPE_CODE:
      return t('Code field');
    case DS_FIELD_TYPE_BLOCK:
      return t('Block field');
    case DS_FIELD_TYPE_CTOOLS:
      return t('Dynamic field');
    case DS_FIELD_TYPE_PREPROCESS:
      return t('Preprocess field');
  }

  // Fallback
  return t('Unknown');
}