You are here

function pathauto_help in Pathauto 7

Same name and namespace in other branches
  1. 8 pathauto.module \pathauto_help()
  2. 5.2 pathauto.module \pathauto_help()
  3. 5 pathauto.module \pathauto_help()
  4. 6.2 pathauto.module \pathauto_help()
  5. 6 pathauto.module \pathauto_help()

Implements hook_help().

File

./pathauto.module, line 42
Main file for the Pathauto module, which automatically generates aliases for content.

Code

function pathauto_help($path, $arg) {
  switch ($path) {
    case 'admin/help#pathauto':
      module_load_include('inc', 'pathauto');
      $output = '<h3>' . t('About') . '</h3>';
      $output .= '<p>' . t('Provides a mechanism for modules to automatically generate aliases for the content they manage.') . '</p>';
      $output .= '<h3>' . t('Settings') . '</h3>';
      $output .= '<dl>';
      $output .= '<dt>' . t('Maximum alias and component length') . '</dt>';
      $output .= '<dd>' . t('The <strong>maximum alias length</strong> and <strong>maximum component length</strong> values default to 100 and have a limit of @max from Pathauto. This length is limited by the length of the "alias" column of the url_alias database table. The default database schema for this column is @max. If you set a length that is equal to that of the one set in the "alias" column it will cause problems in situations where the system needs to append additional words to the aliased URL. You should enter a value that is the length of the "alias" column minus the length of any strings that might get added to the end of the URL. The length of strings that might get added to the end of your URLs depends on which modules you have enabled and on your Pathauto settings. The recommended and default value is 100.', array(
        '@max' => _pathauto_get_schema_alias_maxlength(),
      )) . '</dd>';
      $output .= '</dl>';
      return $output;
    case 'admin/config/search/path/update_bulk':
      $output = '<p>' . t('Bulk generation will only generate URL aliases for items that currently have no aliases. This is typically used when installing Pathauto on a site that has existing un-aliased content that needs to be aliased in bulk.') . '</p>';
      return $output;
  }
}