Skip to content
Snippets Groups Projects
Commit 42b59772 authored by Alex Barth's avatar Alex Barth
Browse files

Prepare for using vocab's module as identifier.

parent d6340b6d
No related branches found
No related tags found
No related merge requests found
...@@ -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) {
$vid = $voc->vid; $id = $voc->vid;
if (strpos($voc->module, 'features_') === 0) { if (strpos($voc->module, 'features_') === 0) {
$vid = $voc->module; $id = $voc->module;
} }
$sources['parent:taxonomy:'. $vid] = 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',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment