function _site_map_title in Site map 7
Title callback for the sitemap page.
Parameters
string $default: The default title that hook_menu provides.
Return value
string The actual title of the page (customized or not).
2 calls to _site_map_title()
- site_map_block_view in ./
site_map.module - Implements hook_block_view().
- site_map_page in ./
site_map.module - Menu callback for the site map.
1 string reference to '_site_map_title'
- site_map_menu in ./
site_map.module - Implements hook_menu().
File
- ./
site_map.module, line 141 - site_map.module
Code
function _site_map_title($default = NULL) {
// If there's a variable set, overriding the translatable title, use it.
// Otherwise, use the built-in one or one of its translations.
$var = variable_get('site_map_page_title', '');
// @codingStandardsIgnoreLine
return strlen($var) ? t($var) : t('Site map');
}