You are here

function xmlsitemap_help in XML sitemap 5

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

Implementation of hook_help().

Related topics

File

./xmlsitemap.module, line 15
Creates a site map compatible with the sitemaps.org schema.

Code

function xmlsitemap_help($section) {
  switch ($section) {
    case 'admin/settings/xmlsitemap':
    case 'admin/settings/xmlsitemap/settings':
      return t('Configure the site map. Your site map is at !url.', array(
        '!url' => '<a href="' . xmlsitemap_url('sitemap.xml', drupal_lookup_path('alias', 'sitemap.xml') ? drupal_lookup_path('alias', 'sitemap.xml') : NULL, NULL, NULL, TRUE) . '">' . xmlsitemap_url('sitemap.xml', drupal_lookup_path('alias', 'sitemap.xml') ? drupal_lookup_path('alias', 'sitemap.xml') : NULL, NULL, NULL, TRUE) . '</a>',
      ));
    case 'admin/settings/xmlsitemap/engines':
      return t('Configure behavior for search engines.');
    case 'admin/settings/xmlsitemap/additional':
      return t('Set up additional links for your site map.');
  }
}