public function FeedsEntityProcessorPropertyDate::mappingFormCallback in Feeds entity processor 7
Form callback for date targets.
File
- src/
Property/ FeedsEntityProcessorPropertyDate.php, line 68 - Contains FeedsEntityProcessorPropertyDate.
Class
- FeedsEntityProcessorPropertyDate
- Handler for date property.
Code
public function mappingFormCallback(array $mapping, $target, array $form, array $form_state) {
$mapping += array(
'timezone' => 'UTC',
);
return array(
'timezone' => array(
'#type' => 'select',
'#title' => t('Timezone handling'),
'#options' => $this
->getTimezoneOptions(),
'#default_value' => $mapping['timezone'],
'#description' => t('This value will only be used if the timezone is mising.'),
),
);
}