/[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.19, Sat Dec 27 15:09:20 2008 UTC revision 1.19.2.20, Thu Jan 1 16:06:27 2009 UTC
# Line 1  Line 1 
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
# Line 155  function xmlsitemap_node_perm() { Line 155  function xmlsitemap_node_perm() {
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() {
# Line 204  function xmlsitemap_node_xmlsitemap_link Line 215  function xmlsitemap_node_xmlsitemap_link
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    );    );
# Line 223  function xmlsitemap_node_xmlsitemap_site Line 234  function xmlsitemap_node_xmlsitemap_site
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    );    );

Legend:
Removed from v.1.19.2.19  
changed lines
  Added in v.1.19.2.20

  ViewVC Help
Powered by ViewVC 1.1.2