summaryrefslogtreecommitdiff
path: root/modules/taxonomy.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/taxonomy.module')
-rw-r--r--modules/taxonomy.module15
1 files changed, 6 insertions, 9 deletions
diff --git a/modules/taxonomy.module b/modules/taxonomy.module
index bdc39bf01..44532589d 100644
--- a/modules/taxonomy.module
+++ b/modules/taxonomy.module
@@ -45,10 +45,13 @@ function taxonomy_perm() {
function taxonomy_link($type) {
if ($type == "admin" && user_access("administer taxonomy")) {
- $links[] = la(t("taxonomy"), array("mod" => "taxonomy"));
- }
+ $help["taxonomy"] = "The taxonomy module allows you to classify post into categories and subcategories; it allows multiple lists of categories for classification (controlled vocabularies) and offers the possibility of creating thesauri (controlled vocabularies that indicate the relationship of terms) and taxonomies (controlled vocabularies where relationships are indicated hierarchically).";
+ $help["vocabulary"] = "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 of content (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.";
- return $links ? $links : array();
+ menu_add("taxonomy", "admin.php?mod=taxonomy", "Administer taxonomies.", $help["taxonomy"], "content management");
+ menu_add("add new vocabulary", "admin.php?mod=taxonomy&op=add&type=vocabulary", "Add a new vocabulary.", $help["vocabulary"], "taxonomy");
+ menu_add("help", "admin.php?mod=taxonomy&op=help", "More information about taxonomies.", NULL, "taxonomy", 9);
+ }
}
/*
@@ -652,12 +655,6 @@ function taxonomy_admin() {
global $edit, $type, $op, $id, $theme;
if (user_access("administer taxonomy")) {
- $links[] = la(t("add new vocabulary"), array("mod" => "taxonomy", "op" => "add", "type" => "vocabulary"));
- $links[] = la(t("overview"), array("mod" => "taxonomy"));
- $links[] = la(t("help"), array("mod" => "taxonomy", "op" => "help"));
-
- print "<small>". implode(" | ", $links) ."</small><hr>\n";
-
switch ($op) {
case "add":
if ($type == "vocabulary") {