function ds_human_name in Display Suite 6
Same name and namespace in other branches
- 6.3 includes/ds.fields.inc \ds_human_name()
 - 6.2 includes/ds.fields.inc \ds_human_name()
 
Parameters
integer $integer An integer which identifies a constant.:
string $type A string to identify the category.:
1 call to ds_human_name()
- ds_fields in includes/
ds.fields.inc  - Fields overview.
 
File
- includes/
ds.fields.inc, line 13  - Manage fields.
 
Code
function ds_human_name($integer, $type) {
  $human_names = array(
    'type' => array(
      DS_FIELD_TYPE_CODE => t('Code field'),
      DS_FIELD_TYPE_BLOCK => t('Block field'),
      DS_FIELD_TYPE_PREPROCESS => t('Preprocess field'),
    ),
    'status' => array(
      DS_FIELD_STATUS_DEFAULT => t('Default'),
      DS_FIELD_STATUS_CUSTOM => t('Custom'),
      DS_FIELD_STATUS_OVERRIDDEN => t('Overridden'),
    ),
  );
  return $human_names[$type][$integer];
}