function template_preprocess_site_map in Site map 6.2
Same name and namespace in other branches
- 8 site_map.theme.inc \template_preprocess_site_map()
- 7 includes/site_map.theme.inc \template_preprocess_site_map()
Process variables for site-map.tpl.php.
See also
File
- ./
site_map.theme.inc, line 118 - Site map theme functions.
Code
function template_preprocess_site_map(&$variables) {
$variables['message'] = check_markup(variable_get('site_map_message', ''), variable_get('site_map_message_format', FILTER_FORMAT_DEFAULT), FALSE);
if (variable_get('site_map_show_rss_links', 1) != 0 && module_exists('commentrss') && variable_get('commentrss_site', COMMENTRSS_SITE_FRONT_PAGE)) {
$variables['rss_legend'] = theme('site_map_rss_legend');
}
if (variable_get('site_map_show_front', 1)) {
$variables['front_page'] = _site_map_front_page();
}
if (variable_get('site_map_show_blogs', 1)) {
$variables['blogs'] = _site_map_blogs();
}
// Compile the books trees.
$variables['books'] = _site_map_books();
// Compile the menu trees.
$variables['menus'] = _site_map_menus();
if (variable_get('site_map_show_faq', 0)) {
$variables['faq'] = _site_map_faq();
}
// Compile the vocabulary trees.
$variables['taxonomys'] = _site_map_taxonomys();
// Invoke all custom modules and get themed HTML to be integrated
// into the site map.
$additional = module_invoke_all('site_map');
foreach ($additional as $themed_site_map_code) {
$variables['additional'] .= $themed_site_map_code;
}
}