1 entityreference.module entityreference_field_info()

Implements hook_field_info().

File

core/modules/entityreference/entityreference.module, line 13
Entityreference primary module file.

Code

function entityreference_field_info() {
  return array(
    'entityreference' => array(
      'label' => 'Entity Reference',
      'description' => t('Defines a field type for referencing other entities.'),
      'settings' => array(
        'target_type' => 'node',
        'handler' => 'base',
        'handler_settings' => array(),
      ),
      'instance_settings' => array(),
      'default_widget' => 'entityreference_autocomplete',
      'default_formatter' => 'entityreference_label',
      'property_callbacks' => array('entityreference_field_property_callback'),
    ),
  );
}