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

Clean up CVS parser form.

parent 3714a737
No related branches found
No related tags found
No related merge requests found
...@@ -119,11 +119,11 @@ class FeedsCSVParser extends FeedsParser { ...@@ -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 = 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[] = 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'); $items[] = l(t('Download a template'), 'import/' . $this->id . '/template');
$form['help']['#markup'] = '<div class="help">'. theme('item_list', array('items' => $items)) .'</div>'; $form['help']['#markup'] = '<div class="help"><p>' . $output . '</p>' . theme('item_list', array('items' => $items)) . '</div>';
$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