You are here

function availability_calendar_booking_formlet_field_widget_info in Availability Calendars 7.5

Same name and namespace in other branches
  1. 7.3 booking_formlet/availability_calendar_booking_formlet.module \availability_calendar_booking_formlet_field_widget_info()
  2. 7.4 booking_formlet/availability_calendar_booking_formlet.module \availability_calendar_booking_formlet_field_widget_info()

Implements hook_field_widget_info. @link http://api.drupal.org/api/drupal/modules--field--field.api.php/function/...

For now, this module defines 1 widget. Other widgets may be defined in the future or by other modules.

File

booking_formlet/availability_calendar_booking_formlet.module, line 92
Availability Calendar booking formlet module. This submodule of the Availability Calendar module defines a field that shows a small booking form that interacts with a calendar field. The form only has an arrival and departure date field and a submit…

Code

function availability_calendar_booking_formlet_field_widget_info() {
  return array(
    'availability_calendar_booking_formlet' => array(
      'label' => t('- None -'),
      'description' => '',
      'field types' => array(
        'availability_calendar_booking_formlet',
      ),
      'settings' => array(),
      'behaviors' => array(
        'multiple values' => FIELD_BEHAVIOR_CUSTOM,
        'default value' => FIELD_BEHAVIOR_NONE,
      ),
    ),
  );
}