public function FeedsEntityProcessorPropertyDate::preprocessCallback in Feeds entity processor 7
Preprocess callback for date targets.
Used only to issue a warning about limited date import functionality when the date_api module is not enabled.
File
- src/
Property/ FeedsEntityProcessorPropertyDate.php, line 99 - Contains FeedsEntityProcessorPropertyDate.
Class
- FeedsEntityProcessorPropertyDate
- Handler for date property.
Code
public function preprocessCallback(array $target, array &$mapping) {
if (!module_exists('date_api')) {
drupal_set_message(t('Dates can only be imported as timestamps now. Enable the Date API module (part of the <a href="@url">Date</a> project) to be able to import dates in various date formats.', array(
'@url' => 'https://www.drupal.org/project/date',
)), 'warning', FALSE);
}
}