From a0fba5cbc4c3e1fb87ddb9f7a649e42b8a30ddf5 Mon Sep 17 00:00:00 2001 From: Alex Barth <alex_b@53995.no-reply.drupal.org> Date: Thu, 30 Sep 2010 21:21:12 +0000 Subject: [PATCH] Clean up CVS parser form. --- plugins/FeedsCSVParser.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/FeedsCSVParser.inc b/plugins/FeedsCSVParser.inc index 2500d94a..5762bad4 100644 --- a/plugins/FeedsCSVParser.inc +++ b/plugins/FeedsCSVParser.inc @@ -119,11 +119,11 @@ class FeedsCSVParser extends FeedsParser { } } + $output = t('Import !csv_files with one or more of these columns: !columns.',array('!csv_files' => l(t('CSV files'), 'http://en.wikipedia.org/wiki/Comma-separated_values'), '!columns' => implode(', ', $sources))); $items = array(); - $items[] = t('Import !csv_files with one or more of these columns: !columns.',array('!csv_files' => l(t('CSV files'), 'http://en.wikipedia.org/wiki/Comma-separated_values'), '!columns' => implode(', ', $sources))); $items[] = format_plural(count($uniques), t('Column <strong>!column</strong> is mandatory and considered unique: only one item per !column value will be created.', array('!column' => implode(', ', $uniques))), t('Columns <strong>!columns</strong> are mandatory and values in these columns are considered unique: only one entry per value in one of these column will be created.', array('!columns' => implode(', ', $uniques)))); - $items[] = l(t('Template'), 'import/' . $this->id . '/template'); - $form['help']['#markup'] = '<div class="help">'. theme('item_list', array('items' => $items)) .'</div>'; + $items[] = l(t('Download a template'), 'import/' . $this->id . '/template'); + $form['help']['#markup'] = '<div class="help"><p>' . $output . '</p>' . theme('item_list', array('items' => $items)) . '</div>'; $form['delimiter'] = array( '#type' => 'select', '#title' => t('Delimiter'), -- GitLab