You are here

function _sitemap_get_message in Site map 6

Same name and namespace in other branches
  1. 5 site_map.module \_sitemap_get_message()

Get the message which appears above the site map.

If the locale module is enabled, an optional language code can be given.

2 calls to _sitemap_get_message()
site_map_admin_settings in ./site_map.admin.inc
Menu callback; presents the sitemap settings page.
site_map_help in ./site_map.module
Implements hook_help().

File

./site_map.module, line 544
Original author: Nic Ivy Now maintained by by Fredrik Jonsson fredrik at combonet dot se

Code

function _sitemap_get_message($lang_code = NULL) {
  if (module_exists('locale')) {
    if ($lang_code == NULL) {
      global $language;
      $lang_code = $language->language;
    }
    $message = filter_xss_admin(variable_get("site_map_message_{$lang_code}", ''));
  }
  else {
    $message = filter_xss_admin(variable_get('site_map_message', ''));
  }
  return $message;
}