You are here

function taxonomy_xml_help in Taxonomy import/export via XML 7

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. 6 taxonomy_xml.module \taxonomy_xml_help()

Implements hook_help().

File

./taxonomy_xml.module, line 95
Make it possible to import and export taxonomies as XML documents.

Code

function taxonomy_xml_help($path, $arg) {
  $doc_path = drupal_get_path('module', 'taxonomy_xml') . '/help';
  switch ($path) {
    case 'admin/modules#description':
      return t('Makes it possible to import and export taxonomy terms via XML.');
    case TAXONOMY_XML_ADMIN . '/import':
      return t("\n        You can upload or import a vocabulary and/or taxonomy terms\n        from a properly-formatted input document or web service.\n      ") . theme("more_help_link", array(
        'url' => 'admin/help/taxonomy_xml',
      ));
    case TAXONOMY_XML_ADMIN . '/export':
      return t("\n        You can export XML documents for each vocabulary and its terms in\n        this website's taxonomies.\n        Choose the vocabulary from the list below.\n        See more about !taxonomy_formats in the module docs.\n        ", array(
        '!taxonomy_formats' => l(t("taxonomy formats"), "admin/help/taxonomy_xml"),
      ));
    case 'admin/help#taxonomy_xml':
      return t(file_get_contents($doc_path . '/help.html'), array(
        '!downloads' => url(TAXONOMY_XML_ADMIN . "/export"),
        '!upload' => url(TAXONOMY_XML_ADMIN . "/import"),
        '!formats' => url("{$doc_path}/formats.html"),
        '!services' => url(TAXONOMY_XML_ADMIN . "/import/services"),
        '!rdf' => url("{$doc_path}/rdf.html"),
      ));
    case TAXONOMY_XML_ADMIN . '/import/services':
      return file_get_contents("{$doc_path}/services.html");
  }
}