| 1 |
<?php |
<?php |
| 2 |
// $Id: xmlsitemap_node.module,v 1.19.2.73 2009/03/01 01:21:49 kiam Exp $ |
// $Id: xmlsitemap_node.module,v 1.19.2.74 2009/03/01 01:34:24 kiam Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 342 |
*/ |
*/ |
| 343 |
function xmlsitemap_node_xmlsitemap_sitemap_settings_alter(&$form) { |
function xmlsitemap_node_xmlsitemap_sitemap_settings_alter(&$form) { |
| 344 |
$options = xmlsitemap_priority_options(); |
$options = xmlsitemap_priority_options(); |
| 345 |
$form['general']['priority']['xmlsitemap_node_promote_priority'] = array( |
$form['general']['priority']['a']['xmlsitemap_node_promote_priority'] = array( |
| 346 |
'#type' => 'select', |
'#type' => 'select', |
| 347 |
'#title' => t('Promotion adjustment'), |
'#title' => t('Promotion adjustment'), |
| 348 |
'#description' => t("This number will be added to the priority of each post that is promoted to the front page. This setting doesn't apply for the nodes for which the priority is overriden."), |
'#description' => t("This number will be added to the priority of each post that is promoted to the front page. This setting doesn't apply for the nodes for which the priority is overriden."), |
| 349 |
'#default_value' => variable_get('xmlsitemap_node_promote_priority', 0.3), |
'#default_value' => variable_get('xmlsitemap_node_promote_priority', 0.3), |
| 350 |
'#options' => $options, |
'#options' => $options, |
| 351 |
); |
); |
| 352 |
$form['general']['priority']['xmlsitemap_node_comment_priority'] = array( |
$form['general']['priority']['a']['xmlsitemap_node_comment_priority'] = array( |
| 353 |
'#type' => 'select', |
'#type' => 'select', |
| 354 |
'#title' => t('Comment ratio weight - nodes'), |
'#title' => t('Comment ratio weight - nodes'), |
| 355 |
'#description' => t("This number will be added to the priority of the post with the highest number of comments; for the other posts, the number is calculated proportionally to the number of comments. This doesn't apply if the maximum number of comments is one, nor for the nodes for which the priority is overriden."), |
'#description' => t("This number will be added to the priority of the post with the highest number of comments; for the other posts, the number is calculated proportionally to the number of comments. This doesn't apply if the maximum number of comments is one, nor for the nodes for which the priority is overriden."), |