You are here

public function AvailabilityCalendarICalFeedsProcessor::configDefaults in Availability Calendars 7.5

File

./AvailabilityCalendarICalFeedsProcessor.inc, line 8

Class

AvailabilityCalendarICalFeedsProcessor
@class ICalendar processor for availability calendars.

Code

public function configDefaults() {
  module_load_include('inc', 'availability_calendar');
  $result = parent::configDefaults();

  // Overwrite some defaults.
  $result['insert_new'] = FEEDS_SKIP_NEW;
  $result['update_existing'] = FEEDS_UPDATE_EXISTING;
  $result['update_non_existent'] = FEEDS_SKIP_NON_EXISTENT;

  // Add our own config defaults.
  $unavailableStates = availability_calendar_get_states(false);
  reset($unavailableStates);
  $result['availability_calendar_state'] = key($unavailableStates);
  $result['entity_type'] = '';
  $result['bundle'] = '';
  $result['entity_id'] = 0;
  return $result;
}