You are here

function bat_calendar_reference_field_info in Booking and Availability Management Tools for Drupal 7

Implements hook_field_info().

File

modules/bat_calendar_reference/bat_calendar_reference.module, line 53
Defines a field type for referencing event information.

Code

function bat_calendar_reference_field_info() {
  return array(
    'bat_calendar_unit_reference' => array(
      'label' => t('BAT Calendar Unit Reference'),
      'description' => t('Display unit events information embedded from other fieldable content.'),
      'settings' => array(
        'referenceable_unit_types' => array(),
      ),
      'default_widget' => 'bat_calendar_reference_unit_autocomplete',
      'default_formatter' => 'bat_calendar_reference_timeline_view',
    ),
    'bat_calendar_unit_type_reference' => array(
      'label' => t('BAT Calendar Unit Type Reference'),
      'description' => t('Display unit type events information embedded from other fieldable content.'),
      'settings' => array(),
      'default_widget' => 'bat_calendar_reference_unit_type_autocomplete',
      'default_formatter' => 'bat_calendar_reference_timeline_view',
    ),
  );
}