function _xmlsitemap_sitemap_context_summary in XML sitemap 7.2
Same name and namespace in other branches
- 8 xmlsitemap.module \_xmlsitemap_sitemap_context_summary()
- 6.2 xmlsitemap.module \_xmlsitemap_sitemap_context_summary()
- 2.x xmlsitemap.module \_xmlsitemap_sitemap_context_summary()
Context summary.
Related topics
1 call to _xmlsitemap_sitemap_context_summary()
- xmlsitemap_sitemap_list_form in ./
xmlsitemap.admin.inc - Render a tableselect list of XML sitemaps for the main admin page.
File
- ./
xmlsitemap.module, line 1616 - xmlsitemap XML sitemap
Code
function _xmlsitemap_sitemap_context_summary(stdClass $sitemap, $context_key, array $context_info) {
$context_value = isset($sitemap->context[$context_key]) ? $sitemap->context[$context_key] : NULL;
if (!isset($context_value)) {
return t('Default');
}
elseif (!empty($context_info['summary callback'])) {
return $context_info['summary callback']($context_value);
}
else {
return $context_value;
}
}