1 field.module field_config_info()

Implements hook_config_info().

Related topics

File

core/modules/field/field.module, line 409
Attach custom data fields to Backdrop entities.

Code

function field_config_info() {
  $prefixes['field.field'] = array(
    'name_key' => 'field_name',
    'label_key' => 'field_name',
    'group' => t('Fields'),
  );
  $prefixes['field.instance'] = array(
    'name_key' => array('entity_type', 'bundle', 'field_name'),
    'label_callback' => 'field_config_label_instance',
    'group' => t('Field instances'),
  );
  $prefixes['field.bundle'] = array(
    'name_key' => array('entity_type', 'bundle'),
    'label_callback' => 'field_config_label_bundle',
    'group' => t('Field display settings'),
  );

  return $prefixes;
}