You are here

function biblio_fields_field_info in Bibliography Module 7.2

Implements hook_field_info().

File

modules/biblio_fields/biblio_fields.module, line 6

Code

function biblio_fields_field_info() {
  return array(
    'biblio_text' => array(
      'label' => t('Biblio Text'),
      'description' => t('Standard Text Field with the addition of the option to select a vertical tab for the add/edit form.'),
      'default_widget' => 'biblio_text_widget',
      'default_formatter' => 'biblio_text_formatter',
      'instance_settings' => array(
        'vtab' => t('None'),
      ),
      // property_type and property_callbacks keys are neccessary to use the
      // entity API to get/set custom fields in entities.
      'property_type' => 'text',
      'property_callbacks' => array(
        'entity_metadata_field_text_property_callback',
      ),
    ),
  );
}