summaryrefslogtreecommitdiff
path: root/modules/taxonomy
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2002-12-24 15:40:32 +0000
committerDries Buytaert <dries@buytaert.net>2002-12-24 15:40:32 +0000
commit22fa9ed70a512feb6d603d24218e9a7db7610a0e (patch)
tree16b69a177c1645a7d3474bfe06e0571d7280b5d9 /modules/taxonomy
parentca07ff36d600e778a71dbe52dce9e82c3f1ebd92 (diff)
downloadbrdo-22fa9ed70a512feb6d603d24218e9a7db7610a0e.tar.gz
brdo-22fa9ed70a512feb6d603d24218e9a7db7610a0e.tar.bz2
- Refactored the administration pages.
Diffstat (limited to 'modules/taxonomy')
-rw-r--r--modules/taxonomy/taxonomy.module15
1 files changed, 6 insertions, 9 deletions
diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module
index bdc39bf01..44532589d 100644
--- a/modules/taxonomy/taxonomy.module
+++ b/modules/taxonomy/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") {