чтобы убрать rss совсем, нужно модифицировать модуль node, как это описано здесь...
то есть...
находим в module/node.module
строку
function node_feed($nodes = 0, $channel = array()) {
и сразу после неё добавляем:
drupal_not_found();
return;
всё... плюс в css нужно вставить стиль
.main-content .xml-icon, .main-content .feed-icon {
display: none;
}
и ещё нужно убрать rss ссылку со всех страниц сайта...
в node.module (строка 1964) закомментируйте то, что выделено оранжевым цветом:
<?php
if (db_num_rows($result)) {
/* Kerry - turn off to avoid placing link to xml/rss in page
drupal_add_link(array('rel' => 'alternate',
'type' => 'application/rss+xml',
'title' => 'RSS',
'href' => url('node/feed', NULL, NULL, TRUE)));
*/
?>
в blog.module (строка 163):
<?php
while ($node = db_fetch_object($result)) {
$output .= node_view(node_load($node->nid), 1);
}
$output .= theme('pager', NULL, variable_get('default_nodes_main', 10));
$output .= theme('feed_icon', url("blog/$account->uid/feed"));
/* Kerry - turn off to avoid placing link to xml/rss in page
drupal_add_link(array('rel' => 'alternate',
'type' => 'application/rss+xml',
'title' => t('RSS - %title', array('%title' => $title)),
'href' => url("blog/$account->uid/feed")));
*/
return $output;
}
else {
drupal_not_found();
}
}
?>
и чуть ниже (строка 191):
<?php
while ($node = db_fetch_object($result)) {
$output .= node_view(node_load($node->nid), 1);
}
$output .= theme('pager', NULL, variable_get('default_nodes_main', 10));
$output .= theme('feed_icon', url('blog/feed'));
/* Kerry - turn off to avoid placing link to xml/rss in page
drupal_add_link(array('rel' => 'alternate',
'type' => 'application/rss+xml',
'title' => t('RSS - blogs'),
'href' => url("blog/feed")));
*/
return $output;
}
?>
в taxonomy.module (строка 1232):
<?php
$breadcrumbs = array_reverse($breadcrumbs);
menu_set_location($breadcrumbs);
/* Kerry - turn off to avoid placing link to xml/rss in page
drupal_add_link(array('rel' => 'alternate',
'type' => 'application/rss+xml',
'title' => 'RSS - '. $title,
'href' => url('taxonomy/term/'. $str_tids .'/'. $depth .'/feed')));
*/
$output = taxonomy_render_nodes(taxonomy_select_nodes($tids, $operator, $depth, TRUE));
?>
и в forum.module (строка 902):
<?php
if ($tid && !in_array($tid, variable_get('forum_containers', array()))) {
/* Kerry - turn off to avoid placing link to xml/rss in page
drupal_add_link(array('rel' => 'alternate',
'type' => 'application/rss+xml',
'title' => 'RSS - '. $title,
'href' => url('taxonomy/term/'. $tid .'/0/feed')));
*/
$output .= theme('forum_topic_list', $tid, $topics, $sortby, $forum_per_page);
$output .= theme('feed_icon', url("taxonomy/term/$tid/0/feed"));
}
?>