You are here

function taxonomy_csv_help in Taxonomy CSV import/export 6.2

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.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()

Implements hook_help().

File

./taxonomy_csv.module, line 40
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) {
  global $language;
  switch ($path) {
    case 'admin/content/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>' . '<p>' . 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.') . '</p>' . '<p>' . t('<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')) . '</p>';
      return $output;
    case 'admin/content/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'),
      )) . theme('more_help_link', url('admin/help/taxonomy_csv')) . '</p>';
      return $output;
    case 'admin/help#taxonomy_csv':
      $output = file_get_contents(drupal_get_path('module', 'taxonomy_csv') . (is_file(drupal_get_path('module', 'taxonomy_csv') . "/translations/taxonomy_csv.help.{$language->prefix}.html") ? "/translations/taxonomy_csv.help.{$language->prefix}.html" : '/taxonomy_csv.help.html'));
      return $output;
  }
}