You are here

function taxonomy_xml_help in Taxonomy import/export via XML 6

Same name and namespace in other branches
  1. 5.2 taxonomy_xml.module \taxonomy_xml_help()
  2. 5 taxonomy_xml.module \taxonomy_xml_help()
  3. 6.2 taxonomy_xml.module \taxonomy_xml_help()
  4. 7 taxonomy_xml.module \taxonomy_xml_help()

Implementation of hook_help().

File

./taxonomy_xml.module, line 73
taxonomy_xml.module This module makes it possible to import and export taxonomies as XML documents.

Code

function taxonomy_xml_help($path, $arg) {
  switch ($path) {
    case 'admin/modules#description':
      return t('Makes it possible to import and export taxonomy terms via XML.');
    case 'admin/content/taxonomy/import':
      return t("\n        You can upload or import a vocabulary and/or taxonomy terms from a properly-formatted input document or web service.\n      ") . theme("more_help_link", url('admin/help/taxonomy_xml'));
    case 'admin/content/taxonomy/export':
      return t("You can export XML documents for each vocabulary and its terms in this website's taxonomies. Choose the vocabulary from the list below. See more about !taxonomy_formats in the module docs. ", array(
        '!taxonomy_formats' => l(t("taxonomy formats"), "admin/help/taxonomy_xml"),
      ));
    case 'admin/help#taxonomy_xml':
      $extra_help = file_get_contents(drupal_get_path('module', 'taxonomy_xml') . '/help.txt');
      return t("\n        <p>This module makes it possible to import and export vocabularies and\n        taxonomy terms from various formats.\n        See !formats in the module folder for more detail about the supported syntax.\n        </p>\n        <p>Once installed and enabled, it provides a list of downloadable XML\n        documents for each vocabulary at !downloads.\n        To import a vocabulary, use !upload.</p>" . $extra_help, array(
        '!downloads' => l(t("Taxonomy Export"), "admin/taxonomy/export"),
        '!upload' => l("Administer > Taxonomy > Import", "admin/taxonomy/import"),
        '!formats' => l("formats.html", drupal_get_path('module', 'taxonomy_xml') . '/formats.html'),
      ));
    case 'admin/content/taxonomy/import/services':
      return filter_filter('process', 1, NULL, file_get_contents(drupal_get_path('module', 'taxonomy_xml') . '/about_services.txt'));
  }
}