function field_test_entity_label_callback

Entity label callback.

Parameters

$entity_type: The entity type.

$entity: The entity object.

$langcocde: (optional) The langcode.

Return value

The label of the entity prefixed with "label callback".

File

drupal/core/modules/field/tests/modules/field_test/field_test.module, line 201

Code

function field_test_entity_label_callback($entity_type, $entity, $langcode = NULL) {
  return 'label callback ' . $entity->ftlabel;
}