You are here

function date_feeds_form_callback in Feeds 7.2

Form callback for date field targets.

1 string reference to 'date_feeds_form_callback'
date_feeds_processor_targets in mappers/date.inc
Implements hook_feeds_processor_targets().

File

mappers/date.inc, line 125
On behalf implementation of Feeds mapping API for date.module.

Code

function date_feeds_form_callback(array $mapping, $target, array $form, array $form_state) {
  $mapping += array(
    'timezone' => 'UTC',
  );
  return array(
    'timezone' => array(
      '#type' => 'select',
      '#title' => t('Timezone handling'),
      '#options' => _date_feeds_timezone_options(),
      '#default_value' => $mapping['timezone'],
      '#description' => t('This value will only be used if the timezone is mising.'),
    ),
  );
}