You are here

function path_help in Drupal 5

Same name and namespace in other branches
  1. 8 core/modules/path/path.module \path_help()
  2. 4 modules/path.module \path_help()
  3. 6 modules/path/path.module \path_help()
  4. 7 modules/path/path.module \path_help()
  5. 9 core/modules/path/path.module \path_help()

Implementation of hook_help().

File

modules/path/path.module, line 11
Enables users to rename URLs.

Code

function path_help($section) {
  switch ($section) {
    case 'admin/help#path':
      $output = '<p>' . t('The path module allows you to specify aliases for Drupal URLs. Such aliases improve readability of URLs for your users and may help internet search engines to index your content more effectively. More than one alias may be created for a given page.') . '</p>';
      $output .= t('<p>Some examples of URL aliases are:</p>
<ul>
<li>user/login =&gt; login</li>
<li>image/tid/16 =&gt; store</li>
<li>taxonomy/term/7+19+20+21 =&gt; store/products/whirlygigs</li>
<li>node/3 =&gt; contact</li>
</ul>
');
      $output .= '<p>' . t('The path module enables an extra field for aliases in all node input and editing forms (when users have the appropriate permissions). It also provides an interface to view and edit all URL aliases. The two permissions related to URL aliasing are "administer url aliases" and "create url aliases". ') . '</p>';
      $output .= '<p>' . t('This module also comes with user-defined mass URL aliasing capabilities, which is useful if you wish to uniformly use URLs different from the default. For example, you may want to have your URLs presented in a different language. Access to the Drupal source code on the web server is required to set up these kinds of aliases. ') . '</p>';
      $output .= '<p>' . t('For more information please read the configuration and customization handbook <a href="@path">Path page</a>.', array(
        '@path' => 'http://drupal.org/handbook/modules/path/',
      )) . '</p>';
      return $output;
    case 'admin/build/path':
      return '<p>' . t("Drupal provides users complete control over URLs through aliasing. This feature is typically used to make URLs human-readable or easy to remember. For example, one could map the relative URL 'node/1' onto 'about'. Each system path can have multiple aliases.") . '</p>';
    case 'admin/build/path/add':
      return '<p>' . t('Enter the path you wish to create the alias for, followed by the name of the new alias.') . '</p>';
  }
}