From 22c889e7c05b1c2dd98ad5e6b3547234a3f6596f Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 7 Oct 2003 18:16:41 +0000 Subject: - Help system improvements: eliminated the _system hook. Patch by Michael. - Bloggerapi module fixes. Patch by Kjartan. - Coding style fixes. Patch by Michael. --- modules/path.module | 28 ++++++++++++---------------- 1 file changed, 12 insertions(+), 16 deletions(-) (limited to 'modules/path.module') diff --git a/modules/path.module b/modules/path.module index 1e4d428f7..7fed2cf71 100644 --- a/modules/path.module +++ b/modules/path.module @@ -1,13 +1,6 @@ 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 .= "
  1. create url aliases - Allows users to create aliases for nodes. Enabling this permission will display a new path field to the user in any node form, allowing them to enter an alias for that node. They will be able to edit/delete the alias after it is created using the same form.
  2. administer url aliases - Allows users to access the alias administration interface. They must also have the access administration pages permission set as well. This interface displays all aliases and provides a way to create and modify them as well. This is also the location to build aliases for things other than nodes. For example, you can create an alias for a taxonomy URL or even re-map the admin path (although the original admin path will still be accessible since aliases do not cancel out original paths).
"; + $output .= "
    "; + $output .= "
  1. create url aliases - Allows users to create aliases for nodes. Enabling this permission will display a new path field to the user in any node form, allowing them to enter an alias for that node. They will be able to edit/delete the alias after it is created using the same form.
  2. "; + $output .= "
  3. administer url aliases - Allows users to access the alias administration interface. They must also have the access administration pages permission set as well. This interface displays all aliases and provides a way to create and modify them as well. This is also the location to build aliases for things other than nodes. For example, you can create an alias for a taxonomy URL or even re-map the admin path (although the original admin path will still be accessible since aliases do not cancel out original paths).
  4. "; + $output .= "
"; + $output = t($output); break; } - return t($output); + return $output; } function path_link($type, $node = NULL) { -- cgit v1.2.3