You are here

function taxonomy_csv_help in Taxonomy CSV import/export 7.5

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

Implements hook_help().

File

./taxonomy_csv.module, line 39
Quick export and import of taxonomies, structure or lists of terms to or from a csv local or distant file or a text area.

Code

function taxonomy_csv_help($path, $arg) {
  switch ($path) {
    case 'admin/structure/taxonomy/csv_import':
      $output = '<p>' . t('Use this form to import a taxonomy, a structure or a list of terms into a vocabulary from a simple <a href="!link" title="Wikipedia definition">CSV</a> file, a url or a copy-and-paste text.', array(
        '!link' => url('http://en.wikipedia.org/wiki/Comma-separated_values'),
      )) . '</p>' . '<ul>' . '<li>' . t('For performance reasons, it is recommended to disable some other taxonomy related modules before import of big taxonomies and to reactivate them after process.') . '</li>' . '<li>' . t('For a better user experience, it is recommended to avoid duplicate terms. This module can manage them efficiently, but hidden errors can occur when a complex vocabulary with duplicates is updated by the administrator or by the module.') . '</li>' . '<li>' . '<strong>' . t('Warning') . '</strong>' . ': ' . t('If you want to update an existing vocabulary, make sure you have a backup before you proceed so you can roll back, if necessary.') . '</li>' . '</ul>' . theme('more_help_link', array(
        'url' => 'admin/help/taxonomy_csv',
      )) . '<br />';
      return $output;
    case 'admin/structure/taxonomy/csv_export':
      $output = '<p>' . t('Use this form to export a taxonomy, a structure or a list of terms to a simple <a href="!link" title="Wikipedia definition">CSV</a> file.', array(
        '!link' => url('http://en.wikipedia.org/wiki/Comma-separated_values'),
      )) . '</p>' . '<p>' . t('Set vocabulary to export in first tab, format to use in second tab and order of terms in third tab.') . '</p>' . theme('more_help_link', array(
        'url' => 'admin/help/taxonomy_csv',
      )) . '<br />';
      return $output;
    case 'admin/help#taxonomy_csv':
      $output = file_get_contents(drupal_realpath(drupal_get_path('module', 'taxonomy_csv') . '/taxonomy_csv.help.html'));
      return $output;
  }
}