You are here

function appointment_calendar_productcustomtype_installed_instances in Appointment Calendar 7

Implements installed instances.

1 call to appointment_calendar_productcustomtype_installed_instances()
appointment_calendar_add_custom_fields in ./appointment_calendar.install
Adds fields in content type.

File

./appointment_calendar.install, line 53
Install and uninstall functions for the Appointment Calendar module.

Code

function appointment_calendar_productcustomtype_installed_instances() {
  $t = get_t();
  return array(
    'appointment_date' => array(
      'field_name' => 'appointment_date',
      'type' => 'text',
      'label' => $t('Appointment Date'),
      'widget' => array(
        'type' => 'date_popup',
        'settings' => array(
          'input_format' => 'Y-m-d H:i:s',
          'year_range' => '-0:+5',
          'tz_handling' => 'none',
        ),
      ),
      'display' => array(
        'default' => array(
          'label' => $t('Appointment Date'),
          'type' => 'date_popup',
        ),
      ),
    ),
    'appointment_slot' => array(
      'field_name' => 'appointment_slot',
      'type' => 'text',
      'label' => $t('Appointment Slot'),
      'widget' => array(
        'type' => 'list_text',
      ),
      'display' => array(
        'default' => array(
          'label' => $t('Appointment Slot'),
          'type' => 'list_text',
        ),
      ),
    ),
  );
}