Index: taxonomy_dhtml.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/taxonomy_dhtml/taxonomy_dhtml.module,v
retrieving revision 1.43
diff -u -r1.43 taxonomy_dhtml.module
--- taxonomy_dhtml.module 26 Mar 2004 22:30:46 -0000 1.43
+++ taxonomy_dhtml.module 5 Apr 2004 06:26:42 -0000
@@ -115,7 +115,7 @@
function taxonomy_dhtml_link($type, $node) {
$text = t(variable_get("taxonomy_dhtml_overview_title", "Categories"));
$textlower = strtolower($text);
- if ($type == "page" && user_access("access content")) {
+ if ($type == "page" && user_access("access content") && variable_get("taxonomy_dhtml_display_link", 1)) {
$links[] = l(t($textlower), "taxonomy_dhtml");
return $links;
}
@@ -220,7 +220,8 @@
foreach ($vocabularies as $vocabulary) {
$select[$vocabulary->vid] = $vocabulary->name;
}
- $output = form_select(t("Omitted vocabularies"), "taxonomy_dhtml_overview_vocab", variable_get("taxonomy_dhtml_overview_vocab", array()), $select, t("Select vocabularies which should be omitted from listings."), "", 1);
+ $output = form_select(t("Omitted vocabularies"), "taxonomy_dhtml_overview_vocab", variable_get("taxonomy_dhtml_overview_vocab", array()), $select, t("Select vocabularies which should be omitted from listings."), "", 1);
+ $output .= form_checkbox(t("Display navigation link."), "taxonomy_dhtml_display_link", 1, variable_get("taxonomy_dhtml_display_link", 1), "");
$output .= form_textfield("Navigation link text", "taxonomy_dhtml_overview_title", variable_get("taxonomy_dhtml_overview_title", t("Categories")), 35, 255, t("The text in the navigation link which points to the main DHTML page."));
$output .= form_textfield("Number of items", "taxonomy_dhtml_overview_count", variable_get("taxonomy_dhtml_overview_count", 50), 3, 3, t("The number of items to display per vocabulary in the overview page."));
return $output;
@@ -258,7 +259,7 @@
break;
case 'admin/help#taxonomy_dhtml':
case 'admin/system/modules/taxonomy_dhtml':
- $output = "This module provides a DHTML representation of this site's taxonomy. Currently, a ". l("block", "admin/block"). " is provided for each vocabulary as well as an ";
+ $output = "This module provides a DHTML representation of this site's taxonomy. Currently, a ". l("block", "admin/system/block"). " is provided for each vocabulary as well as an ";
$output .= l("overview", "taxonomy_dhtml");
$output .= " page showing all vocabularies, terms, and recent nodes within each term. Finally, a box showing taxonomy feeds is outputted on the ". l("syndication page", "syndication"). " if syndication.module is installed.";
break;