From 0e79f07aa7b5a32511784fc5aea37f826970ce18 Mon Sep 17 00:00:00 2001 From: drothstein <drothstein@124982.no-reply.drupal.org> Date: Wed, 21 Nov 2012 05:49:47 -0800 Subject: [PATCH] Issue #1825016 by David_Rothstein: Make it easier for the FeedsCSVParser source form to be altered. --- plugins/FeedsCSVParser.inc | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/plugins/FeedsCSVParser.inc b/plugins/FeedsCSVParser.inc index 5521c483..b5161ed9 100644 --- a/plugins/FeedsCSVParser.inc +++ b/plugins/FeedsCSVParser.inc @@ -132,7 +132,19 @@ class FeedsCSVParser extends FeedsParser { $items = array(); $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('Download a template'), 'import/' . $this->id . '/template'); - $form['help']['#markup'] = '<div class="help"><p>' . $output . '</p>' . theme('item_list', array('items' => $items)) . '</div>'; + $form['help'] = array( + '#prefix' => '<div class="help">', + '#suffix' => '</div>', + 'description' => array( + '#prefix' => '<p>', + '#markup' => $output, + '#suffix' => '</p>', + ), + 'list' => array( + '#theme' => 'item_list', + '#items' => $items, + ), + ); $form['delimiter'] = array( '#type' => 'select', '#title' => t('Delimiter'), -- GitLab