Update default asset Feeds importer mapping and tamper plugins.

This commit is contained in:
Michael Stenta 2018-01-31 16:20:26 -05:00
parent 5ed944d1bf
commit 2bb8ae303f
2 changed files with 4 additions and 4 deletions

View File

@ -71,8 +71,8 @@ function farm_import_asset_importer($asset_type) {
'language' => 'und',
),
array(
'source' => 'Active',
'target' => 'active',
'source' => 'Archived',
'target' => 'archived',
'unique' => FALSE,
'language' => 'und',
),

View File

@ -20,8 +20,8 @@ function farm_import_feeds_tamper_default() {
$feeds_tamper = farm_import_feeds_tamper_plugin('farm_asset', $bundle, 'Name', 'required');
$export[$feeds_tamper->id] = $feeds_tamper;
// Convert active to boolean.
$feeds_tamper = farm_import_feeds_tamper_plugin('farm_asset', $bundle, 'Active', 'boolean_default_true');
// Convert archived to boolean.
$feeds_tamper = farm_import_feeds_tamper_plugin('farm_asset', $bundle, 'Archived', 'boolean_default_false');
$export[$feeds_tamper->id] = $feeds_tamper;
// If a "Parent IDs" field exists, explode it into an array of IDs.