You are here

function _sitemap_get_message in Site map 5

Same name and namespace in other branches
  1. 6 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.module
Implementation of hook_settings().
site_map_help in ./site_map.module
Implementation of hook_help().

File

./site_map.module, line 534
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 $locale;
      $lang_code = $locale;
    }
    $message = filter_xss_admin(variable_get("site_map_message_{$lang_code}", ''));
  }
  else {
    $message = filter_xss_admin(variable_get('site_map_message', ''));
  }
  return $message;
}