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
42b59772
Commit
42b59772
authored
14 years ago
by
Alex Barth
Browse files
Options
Downloads
Patches
Plain Diff
Prepare for using vocab's module as identifier.
parent
d6340b6d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
mappers/taxonomy.inc
+3
-3
3 additions, 3 deletions
mappers/taxonomy.inc
with
3 additions
and
3 deletions
mappers/taxonomy.inc
+
3
−
3
View file @
42b59772
...
@@ -26,11 +26,11 @@ function taxonomy_feeds_parser_sources_alter(&$sources, $content_type) {
...
@@ -26,11 +26,11 @@ function taxonomy_feeds_parser_sources_alter(&$sources, $content_type) {
//options to inherit terms for all vocabs I have
//options to inherit terms for all vocabs I have
$vocabs
=
taxonomy_get_vocabularies
(
$content_type
);
$vocabs
=
taxonomy_get_vocabularies
(
$content_type
);
foreach
(
$vocabs
as
$voc
)
{
foreach
(
$vocabs
as
$voc
)
{
$
v
id
=
$voc
->
vid
;
$id
=
$voc
->
vid
;
if
(
strpos
(
$voc
->
module
,
'features_'
)
===
0
)
{
if
(
strpos
(
$voc
->
module
,
'features_'
)
===
0
)
{
$
v
id
=
$voc
->
module
;
$id
=
$voc
->
module
;
}
}
$sources
[
'parent:taxonomy:'
.
$
v
id
]
=
array
(
$sources
[
'parent:taxonomy:'
.
$id
]
=
array
(
'name'
=>
t
(
'Feed node: Taxonomy: @vocabulary'
,
array
(
'@vocabulary'
=>
$voc
->
name
)),
'name'
=>
t
(
'Feed node: Taxonomy: @vocabulary'
,
array
(
'@vocabulary'
=>
$voc
->
name
)),
'description'
=>
t
(
'Taxonomy terms from feed node in given vocabulary.'
),
'description'
=>
t
(
'Taxonomy terms from feed node in given vocabulary.'
),
'callback'
=>
'taxonomy_feeds_get_source'
,
'callback'
=>
'taxonomy_feeds_get_source'
,
...
...
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