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/path/path.module | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'modules/path/path.module') diff --git a/modules/path/path.module b/modules/path/path.module index 3dc569462..98ac778b8 100644 --- a/modules/path/path.module +++ b/modules/path/path.module @@ -102,7 +102,7 @@ function path_form($edit = "", $error = "") { return form($form); } -function path_help($section = "admin/path/help") { +function path_help($section = "admin/help#path") { $output = ""; switch ($section) { @@ -115,7 +115,7 @@ function path_help($section = "admin/path/help") { case "admin/path/add": $output = t("Enter the path you wish to create the alias for, followed by the name of the new alias. Each path can be associated with only one alias."); break; - case "admin/path/help": + case "admin/help#path": $output .= "

Background

URL aliasing gives users the ability to have control over all Drupal paths. This functionality will integrate seamlessly into node forms and also provide the administrator an interface to view all aliases that have been created.

Aliases have a 1 to 1 relationship with their original Drupal URLs. In otherwards you cannot have an alias map to more than one path. Likewise, a Drupal URL can't be mapped to more than one alias.

"; $output .= "

Permissions

Two new permissions are introduced for aliasing URLs: create url aliases and administer url aliases.

"; $output .= "
    "; @@ -131,9 +131,9 @@ function path_help($section = "admin/path/help") { function path_link($type, $node = NULL) { if ($type == "system" && user_access("administer url aliases")) { - menu("admin/path", t("url aliasing"), "path_admin", path_help("admin/path"), 4); - menu("admin/path/add", t("new alias"), "path_admin", path_help("admin/path/add")); - menu("admin/path/help", t("help"), "path_admin", NULL, 9); + menu("admin/path", t("url aliasing"), "path_admin", 4); + menu("admin/path/add", t("new alias"), "path_admin"); + menu("admin/path/help", t("help"), "path_admin", 9); } } -- cgit v1.2.3