Commit 4d6bef45 authored by Dave Reid's avatar Dave Reid
Browse files

by Dave Reid: Removed the silly type count summary.

parent b33347b6
......@@ -280,7 +280,7 @@ function xmlsitemap_add_form_type_summary(&$form, $type, $items) {
$statuses = xmlsitemap_get_status_options(NULL);
$rows = array();
foreach ($items as $item) {
foreach ($items as $item_type => $item) {
$rows[] = array(
!empty($type['access']) ? l($item['name'], $item['link'], array('query' => drupal_get_destination())) : check_plain($item['name']),
$statuses[$item['status'] ? 1 : 0],
......@@ -291,13 +291,6 @@ function xmlsitemap_add_form_type_summary(&$form, $type, $items) {
$form[$type['type']]['list'] = array(
'#value' => theme('table', $header, $rows),
);
$count = db_query("SELECT COUNT(id) FROM {xmlsitemap} WHERE type = :type AND access = 1 AND status = 1", array(':type' => $type['type']))->fetchField();
$form[$type['type']]['count'] = array(
'#type' => 'item',
'#value' => format_plural($count, 'There is 1 @type link in the XML sitemap.', 'There are @count @type links in the XML sitemap.', array('@type' => drupal_strtolower($type['type']))),
'#access' => xmlsitemap_var('developer_mode'),
);
}
/**
......
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