You are here

function rename_admin_paths_help in Rename Admin Paths 7

Same name and namespace in other branches
  1. 8.2 rename_admin_paths.module \rename_admin_paths_help()
  2. 8 rename_admin_paths.module \rename_admin_paths_help()
  3. 7.2 rename_admin_paths.module \rename_admin_paths_help()

Implements hook_help().

File

./rename_admin_paths.module, line 13
Allows users to rename admin paths

Code

function rename_admin_paths_help($path, $arg) {
  switch ($path) {
    case 'admin/help#rename_admin_paths':
      $output = '<h3>' . t('About') . '</h3>';
      $output .= '<p>' . t('The Path Admin module allows users to rename admin paths (/admin/..) to /something/... and (/user/..) to /something_else/...') . '</p>';
      $output .= '<h3>' . t('Uses') . '</h3>';
      $output .= '<dl><dt>' . t('Rename admin paths') . '</dt>';
      $output .= '<dd>' . t('Choose how to rename admin paths by using <a href="@rename_admin_paths">Path Admin configuration</a>.', array(
        '@rename_admin_paths' => url('admin/config/user-interface/rename-admin-paths'),
      )) . '</dd>';
      $output .= '</dl>';
      return $output;
    case 'admin/config/user-interface/rename-admin-paths':
      $output = '<p>' . t('Configure how to rename admin paths.') . '</p>';
      return $output;
  }
}