From 1a5fcacdd9d6831a01d8eab8f49674c59c25cb80 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Thu, 9 Oct 2003 18:53:22 +0000 Subject: - Committed part 3 of Michael's help system improvements: removed the $help parameter from the menu() function. --- modules/taxonomy/taxonomy.module | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'modules/taxonomy/taxonomy.module') diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module index 68d64b9ae..ff0b8a199 100644 --- a/modules/taxonomy/taxonomy.module +++ b/modules/taxonomy/taxonomy.module @@ -24,9 +24,9 @@ function taxonomy_perm() { function taxonomy_link($type, $node = NULL) { if ($type == "system") { if (user_access("administer taxonomy")) { - menu("admin/taxonomy", t("taxonomy"), "taxonomy_admin", taxonomy_help("admin/taxonomy"), 3); - menu("admin/taxonomy/add/vocabulary", t("create new vocabulary"), "taxonomy_admin", taxonomy_help("admin/taxonomy/add/vocabulary")); - menu("admin/taxonomy/help", t("help"), "taxonomy_admin", NULL, 9); + menu("admin/taxonomy", t("taxonomy"), "taxonomy_admin", 3); + menu("admin/taxonomy/add/vocabulary", t("create new vocabulary"), "taxonomy_admin"); + menu("admin/taxonomy/help", t("help"), "taxonomy_admin", 9); } } else if ($type == "taxonomy terms" && $node != NULL) { @@ -795,7 +795,7 @@ function taxonomy_admin() { return $output; } -function taxonomy_help($section = "admin/taxonomy/help") { +function taxonomy_help($section = "admin/help#taxonomy") { $output = ""; switch ($section) { @@ -808,7 +808,7 @@ function taxonomy_help($section = "admin/taxonomy/help") { case 'admin/taxonomy/add/vocabulary': $output = t("When you create a controlled vocabulary you are creating a set of terms to use for describing content (known as descriptors in indexing lingo). Drupal allows you to describe each node type (blog, story, etc.) using one or many of these terms. For simple implementations, you might create a set of categories without subcategories, similar to Slashdot.org's or Kuro5hin.org's sections. For more complex implementations, you might create a hierarchical list of categories."); break; - case 'admin/taxonomy/help': + case 'admin/help#taxonomy': $output .= "

Background

Taxonomy is the study of classification. Drupal's taxonomy module allows you to define categories which are used to classify content. The module supports hierarchical classification and association between terms, allowing for truly flexible information retrieval and classification. For more details about %classification-types and insight into the development of the taxonomy.module, see this %drupal-dis.

"; $output .= "

An example taxonomy: food

"; $output .= "

Notes

"; -- cgit v1.2.3