Commit aa8f1ddd authored by Dave Reid's avatar Dave Reid

#925454 by Dave Reid: Do not display context summary if it has no callback.

parent 054501c0
......@@ -73,8 +73,10 @@ function xmlsitemap_sitemap_list_form() {
);
foreach ($contexts as $context_key => $context_info) {
if (!empty($context_info['summary callback'])) {
$options[$smid]['context_' . $context_key] = _xmlsitemap_sitemap_context_summary($sitemap, $context_key, $context_info);
}
}
$options[$smid]['updated'] = $sitemap->updated ? format_date($sitemap->updated, 'short') : t('Never');
$options[$smid]['links'] = $sitemap->updated ? $sitemap->links : '-';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment