You are here

function ds_human_name in Display Suite 6.3

Same name and namespace in other branches
  1. 6 includes/ds.fields.inc \ds_human_name()
  2. 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'),
      DS_FIELD_TYPE_THEME => t('Theme field'),
      DS_FIELD_TYPE_FUNCTION => t('Custom function'),
      DS_FIELD_TYPE_IGNORE => t('Available in object content'),
      DS_FIELD_TYPE_GROUP => t('Fieldgroup'),
    ),
    '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];
}