You are here

function taxonomy_csv_help in Taxonomy CSV import/export 5

Same name and namespace in other branches
  1. 6.5 taxonomy_csv.module \taxonomy_csv_help()
  2. 6.2 taxonomy_csv.module \taxonomy_csv_help()
  3. 6.3 taxonomy_csv.module \taxonomy_csv_help()
  4. 6.4 taxonomy_csv.module \taxonomy_csv_help()
  5. 7.5 taxonomy_csv.module \taxonomy_csv_help()
  6. 7.4 taxonomy_csv.module \taxonomy_csv_help()

Implementation of hook_help().

File

./taxonomy_csv.module, line 40
Quick import of lists of terms from a csv file.

Code

function taxonomy_csv_help($section) {
  switch ($section) {
    case 'admin/content/taxonomy/csv':
      return t('<p>Use this form to import taxonomy terms into a vocabulary from a <a href="http://en.wikipedia.org/wiki/Comma-separated_values" title="Wikipedia definition">CSV</a> file.</p><p><strong>Warning:</strong> If you want to update an existing vocabulary, make sure you have a backup before you proceed so you can roll back, if necessary.') . theme('more_help_link', url('admin/help/taxonomy_csv'));
    case 'admin/help#taxonomy_csv':
      return t('<p>This module allows you to <a href="!import-url">import taxonomy terms</a> into a vocabulary from a <a href="http://en.wikipedia.org/wiki/Comma-separated_values" title="Wikipedia definition">CSV</a> file.</p><p>The term name will be imported from the first column. You can specify how additional columns should be imported:</p><dl><dt>Ignore</dt><dd>This has the same effect has having a single column.</dd><dt>Term description, term synonyms</dt><dd>The second column will be imported as the term description and any additional columns will be imported as term synonyms. Either or both may be empty.</dd><dt>Child term names</dt><dd>The second column will be imported as the name of a child term of the term defined by the first column. The third column will be imported as a child of the second column, and so on. For example, you might have a line <code>Animal,Mammal,Dog</code>. Note that this will only work for hierarchical vocabularies.</dd></dl><p>If you want to import child term names as well as descriptions and synonyms for each term, you will need to do this in two steps. First, upload a file containing the parent and child term names with the <em>Child term names</em> option. Second, upload a file containing descriptions and synonyms for each term with the <em>Term description, term synonyms</em> option, while making sure to enable the <em>Update if name matches</em> option.</p><p>If you are unsure how to create a CSV file, you might want to use <acronym title="Microsoft Office ">Excel</a> or another spreadsheet application to export your data into a CSV file.</p>', array(
        '!import-url' => url('admin/content/taxonomy/csv'),
      ));
  }
}