/[drupal]/contributions/modules/xmlsitemap/xmlsitemap_node/xmlsitemap_node.module
ViewVC logotype

Diff of /contributions/modules/xmlsitemap/xmlsitemap_node/xmlsitemap_node.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.19.2.74, Sun Mar 1 01:34:24 2009 UTC revision 1.19.2.75, Sun Mar 1 01:57:53 2009 UTC
# Line 1  Line 1 
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
# Line 342  function xmlsitemap_node_xmlsitemap_link Line 342  function xmlsitemap_node_xmlsitemap_link
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."),

Legend:
Removed from v.1.19.2.74  
changed lines
  Added in v.1.19.2.75

  ViewVC Help
Powered by ViewVC 1.1.2