Skip to content
Snippets Groups Projects
Commit 0e79f07a authored by drothstein's avatar drothstein Committed by Chris Leppanen
Browse files

Issue #1825016 by David_Rothstein: Make it easier for the FeedsCSVParser source form to be altered.

parent be7740fe
No related branches found
No related tags found
No related merge requests found
...@@ -132,7 +132,19 @@ class FeedsCSVParser extends FeedsParser { ...@@ -132,7 +132,19 @@ class FeedsCSVParser extends FeedsParser {
$items = array(); $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[] = 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'); $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( $form['delimiter'] = array(
'#type' => 'select', '#type' => 'select',
'#title' => t('Delimiter'), '#title' => t('Delimiter'),
......
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