Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
feeds
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
drupal.org
feeds
Commits
c12e562b
Commit
c12e562b
authored
14 years ago
by
Alex Barth
Browse files
Options
Downloads
Patches
Plain Diff
#878002 Will White, David Goode: Support multiple sources per mapping target in FeedsDataProcessor.
parent
060608d6
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.txt
+2
-0
2 additions, 0 deletions
CHANGELOG.txt
plugins/FeedsDataProcessor.inc
+9
-1
9 additions, 1 deletion
plugins/FeedsDataProcessor.inc
with
11 additions
and
1 deletion
CHANGELOG.txt
+
2
−
0
View file @
c12e562b
...
...
@@ -3,6 +3,8 @@
Feeds 6.x 1.0 XXXXXXXXXXXXXXXXXX
--------------------------------
- #878002 Will White, David Goode: Support multiple sources per mapping target
in FeedsDataProcessor.
- #904804 alex_b: Support exportable vocabularies.
- #836876 rsoden, Will White, alex_b: Add simple georss support to Common
Syndication Parser.
...
...
This diff is collapsed.
Click to expand it.
plugins/FeedsDataProcessor.inc
+
9
−
1
View file @
c12e562b
...
...
@@ -205,6 +205,9 @@ class FeedsDataProcessor extends FeedsProcessor {
* Set target element, bring element in a FeedsDataHandler format.
*/
public
function
setTargetElement
(
&
$target_item
,
$target_element
,
$value
)
{
if
(
empty
(
$value
))
{
return
;
}
if
(
strpos
(
$target_element
,
'.'
))
{
/**
...
...
@@ -226,7 +229,12 @@ class FeedsDataProcessor extends FeedsProcessor {
$field
=>
$v
,
);
}
$target_item
[
'#'
.
$table
]
=
$values
;
if
(
is_array
(
$target_item
[
"#
$table
"
]))
{
$target_item
[
"#
$table
"
]
=
array_merge
(
$target_item
[
"#
$table
"
],
$values
);
}
else
{
$target_item
[
"#
$table
"
]
=
$values
;
}
}
else
{
$target_item
[
$target_element
]
=
$value
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment