From 42b597728fe3e9e17828a881e7fe26de03fb684e Mon Sep 17 00:00:00 2001 From: Alex Barth <alex_b@53995.no-reply.drupal.org> Date: Tue, 7 Sep 2010 22:30:07 +0000 Subject: [PATCH] Prepare for using vocab's module as identifier. --- mappers/taxonomy.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mappers/taxonomy.inc b/mappers/taxonomy.inc index aea428b9..71032550 100644 --- a/mappers/taxonomy.inc +++ b/mappers/taxonomy.inc @@ -26,11 +26,11 @@ function taxonomy_feeds_parser_sources_alter(&$sources, $content_type) { //options to inherit terms for all vocabs I have $vocabs = taxonomy_get_vocabularies($content_type); foreach($vocabs as $voc) { - $vid = $voc->vid; + $id = $voc->vid; 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)), 'description' => t('Taxonomy terms from feed node in given vocabulary.'), 'callback' => 'taxonomy_feeds_get_source', -- GitLab