| 1 |
<?php |
<?php |
| 2 |
// $Id: xmlsitemap_node.module,v 1.19.2.18 2008/12/27 11:51:58 kiam Exp $ |
// $Id: xmlsitemap_node.module,v 1.19.2.19 2008/12/27 15:09:20 kiam Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 155 |
} |
} |
| 156 |
|
|
| 157 |
/** |
/** |
| 158 |
|
* Implementation of hook_xmlsitemap_database_batch_operation(). |
| 159 |
|
*/ |
| 160 |
|
function xmlsitemap_node_xmlsitemap_database_batch_operation() { |
| 161 |
|
return array( |
| 162 |
|
'file' => 'xmlsitemap_node.batch.inc', |
| 163 |
|
'add function' => 'xmlsitemap_node_update_database_01', |
| 164 |
|
'update function' => 'xmlsitemap_node_update_database_02', |
| 165 |
|
); |
| 166 |
|
} |
| 167 |
|
|
| 168 |
|
/** |
| 169 |
* Implementation of hook_xmlsitemap_links(). |
* Implementation of hook_xmlsitemap_links(). |
| 170 |
*/ |
*/ |
| 171 |
function xmlsitemap_node_xmlsitemap_links() { |
function xmlsitemap_node_xmlsitemap_links() { |
| 215 |
} |
} |
| 216 |
|
|
| 217 |
/** |
/** |
| 218 |
* Implementation of hook_xmlsitemap_sitemap_settings_alter() |
* Implementation of hook_xmlsitemap_sitemap_settings_alter(). |
| 219 |
*/ |
*/ |
| 220 |
function xmlsitemap_node_xmlsitemap_sitemap_settings_alter(&$form) { |
function xmlsitemap_node_xmlsitemap_sitemap_settings_alter(&$form) { |
| 221 |
$form['xmlsitemap_node'] = array( |
$form['xmlsitemap_node'] = array( |
| 222 |
'#type' => 'fieldset', |
'#type' => 'fieldset', |
| 223 |
'#title' => t('Content priority'), |
'#title' => t('Content settings'), |
| 224 |
'#description' => t('The settings for the content to include in the site map.'), |
'#description' => t('The settings for the content to include in the site map.'), |
| 225 |
'#collapsible' => TRUE, |
'#collapsible' => TRUE, |
| 226 |
); |
); |
| 234 |
$form['xmlsitemap_node']['xmlsitemap_node_comment_priority'] = array( |
$form['xmlsitemap_node']['xmlsitemap_node_comment_priority'] = array( |
| 235 |
'#type' => 'select', |
'#type' => 'select', |
| 236 |
'#title' => t('Comment ratio weight'), |
'#title' => t('Comment ratio weight'), |
| 237 |
'#default_value' => variable_get('xmlsitemap_node_comment_priority', 0.5), |
'#default_value' => variable_get('xmlsitemap_node_comment_priority', 0.2), |
| 238 |
'#options' => xmlsitemap_priority_options(), |
'#options' => xmlsitemap_priority_options(), |
| 239 |
'#description' => t("This number will be multiplied by the ratio of the number of comments on a post to the highest number of comments. This doesn't apply if the maximum number of comments is one."), |
'#description' => t("This number will be multiplied by the ratio of the number of comments on a post to the highest number of comments. This doesn't apply if the maximum number of comments is one."), |
| 240 |
); |
); |