function path_help in Drupal 6
Same name and namespace in other branches
- 8 core/modules/path/path.module \path_help()
- 4 modules/path.module \path_help()
- 5 modules/path/path.module \path_help()
- 7 modules/path/path.module \path_help()
- 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($path, $arg) {
switch ($path) {
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 => login</li>
<li>image/tid/16 => store</li>
<li>taxonomy/term/7+19+20+21 => store/products/whirlygigs</li>
<li>node/3 => contact</li>
</ul>
');
$output .= '<p>' . t('The path module enables appropriately permissioned users to specify an optional alias in all node input and editing forms, and provides an interface to view and edit all URL aliases. The two permissions related to URL aliasing are <em>administer url aliases</em> and <em>create url aliases</em>. ') . '</p>';
$output .= '<p>' . t('This module also provides 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 mass URL aliasing. ') . '</p>';
$output .= '<p>' . t('For more information, see the online handbook entry for <a href="@path">Path module</a>.', array(
'@path' => 'http://drupal.org/handbook/modules/path/',
)) . '</p>';
return $output;
case 'admin/build/path':
return '<p>' . t("Drupal provides complete control over URLs through aliasing, which is often used to make URLs more readable or easy to remember. For example, the alias 'about' may be mapped onto the post at the system path 'node/1', creating a more meaningful URL. 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>';
}
}