You are here

function ref_field_field_info in (Entity)Reference Field Synchronization 7

Implements hook_field_info().

File

./ref_field.module, line 34

Code

function ref_field_field_info() {
  return array(
    'ref_field' => array(
      'label' => t('Entity reference'),
      'description' => t('This field stores a directional reference between two entities.'),
      'settings' => array(
        'entity' => '',
        'bundles' => array(),
      ),
      'default_widget' => 'ref_field_autocomplete',
      'default_formatter' => 'ref_field_title',
      'property_callbacks' => array(
        'ref_field_field_property_callback',
      ),
    ),
  );
}