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
f12b40fc
Commit
f12b40fc
authored
15 years ago
by
Alex Barth
Browse files
Options
Downloads
Patches
Plain Diff
Add descriptions to all node targets.
parent
878f601e
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
mappers/content.inc
+1
-1
1 addition, 1 deletion
mappers/content.inc
plugins/FeedsNodeProcessor.inc
+6
-0
6 additions, 0 deletions
plugins/FeedsNodeProcessor.inc
with
7 additions
and
1 deletion
mappers/content.inc
+
1
−
1
View file @
f12b40fc
...
@@ -25,7 +25,7 @@ function content_feeds_node_processor_targets_alter(&$targets, $content_type) {
...
@@ -25,7 +25,7 @@ function content_feeds_node_processor_targets_alter(&$targets, $content_type) {
$targets
[
$k
]
=
array
(
$targets
[
$k
]
=
array
(
'name'
=>
$name
,
'name'
=>
$name
,
'callback'
=>
'content_feeds_set_target'
,
'callback'
=>
'content_feeds_set_target'
,
'description'
=>
t
(
'
Maps to the
!name
CCK
field.'
,
array
(
'!name'
=>
$name
)),
'description'
=>
t
(
'
The CCK
!name field
of the node
.'
,
array
(
'!name'
=>
$name
)),
);
);
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
plugins/FeedsNodeProcessor.inc
+
6
−
0
View file @
f12b40fc
...
@@ -229,23 +229,29 @@ class FeedsNodeProcessor extends FeedsProcessor {
...
@@ -229,23 +229,29 @@ class FeedsNodeProcessor extends FeedsProcessor {
$targets
=
array
(
$targets
=
array
(
'title'
=>
array
(
'title'
=>
array
(
'name'
=>
t
(
'Title'
),
'name'
=>
t
(
'Title'
),
'description'
=>
t
(
'The title of the node'
),
),
),
'status'
=>
array
(
'status'
=>
array
(
'name'
=>
t
(
'Published status'
),
'name'
=>
t
(
'Published status'
),
'description'
=>
t
(
'Whether a node is published or not. 1 stands for published, 0 for not published.'
),
),
),
'created'
=>
array
(
'created'
=>
array
(
'name'
=>
t
(
'Published date'
),
'name'
=>
t
(
'Published date'
),
'description'
=>
t
(
'The UNIX time when a node has been published.'
),
),
),
// Using 'teaser' instead of 'body' forces entire content above the break.
// Using 'teaser' instead of 'body' forces entire content above the break.
'body'
=>
array
(
'body'
=>
array
(
'name'
=>
t
(
'Body'
),
'name'
=>
t
(
'Body'
),
'description'
=>
t
(
'The body of the node. The teaser will be the same as the entire body.'
),
),
),
'url'
=>
array
(
'url'
=>
array
(
'name'
=>
t
(
'URL'
),
'name'
=>
t
(
'URL'
),
'description'
=>
t
(
'The external URL of the node. E. g. the feed item URL in the case of a syndication feed. May be unique.'
),
'optional_unique'
=>
TRUE
,
'optional_unique'
=>
TRUE
,
),
),
'guid'
=>
array
(
'guid'
=>
array
(
'name'
=>
t
(
'GUID'
),
'name'
=>
t
(
'GUID'
),
'description'
=>
t
(
'The external GUID of the node. E. g. the feed item GUID in the case of a syndication feed. May be unique.'
),
'optional_unique'
=>
TRUE
,
'optional_unique'
=>
TRUE
,
),
),
);
);
...
...
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