You are here

function xmlsitemap_help in XML sitemap 7.2

Same name and namespace in other branches
  1. 8 xmlsitemap.module \xmlsitemap_help()
  2. 5.2 xmlsitemap/xmlsitemap.module \xmlsitemap_help()
  3. 5 xmlsitemap.module \xmlsitemap_help()
  4. 6.2 xmlsitemap.module \xmlsitemap_help()
  5. 6 xmlsitemap.module \xmlsitemap_help()
  6. 2.x xmlsitemap.module \xmlsitemap_help()

Implements hook_help().


./xmlsitemap.module, line 97
xmlsitemap XML sitemap


function xmlsitemap_help($path, $arg) {
  $output = '';
  switch ($path) {
    case 'admin/help/xmlsitemap':
    case 'admin/config/search/xmlsitemap/settings/%/%/%':
    case 'admin/config/search/xmlsitemap/edit/%':
    case 'admin/config/search/xmlsitemap/delete/%':
    case 'admin/help#xmlsitemap':
    case 'admin/config/search/xmlsitemap':
    case 'admin/config/search/xmlsitemap/rebuild':
      $output .= '<p>' . t("This action rebuilds your site's XML sitemap and regenerates the cached files, and may be a lengthy process. If you just installed XML sitemap, this can be helpful to import all your site's content into the sitemap. Otherwise, this should only be used in emergencies.") . '</p>';
  if (arg(0) == 'admin' && strpos($path, 'xmlsitemap') !== FALSE && user_access('administer xmlsitemap')) {
    module_load_include('inc', 'xmlsitemap');
    if ($arg[1] == 'config') {

      // Alert the user to any potential problems detected by hook_requirements.
    $output .= _xmlsitemap_get_blurb();
  return $output;