/[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.71, Sun Mar 1 00:04:38 2009 UTC revision 1.19.2.72, Sun Mar 1 01:05:21 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: xmlsitemap_node.module,v 1.19.2.70 2009/02/28 21:01:02 kiam Exp $  // $Id: xmlsitemap_node.module,v 1.19.2.71 2009/03/01 00:04:38 kiam Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 213  function xmlsitemap_node_user($op, &$edi Line 213  function xmlsitemap_node_user($op, &$edi
213          return array();          return array();
214        }        }
215      case 'register':      case 'register':
       if (!isset($form['xmlsitemap'])) {  
         $form['xmlsitemap'] = array(  
           '#type' => 'fieldset',  
           '#title' => t('XML site map'),  
           '#collapsible' => TRUE,  
           '#access' => user_access('override profile settings') || user_access('administer users'),  
           '#weight' => 7,  
         );  
       }  
216        $form['xmlsitemap']['xmlsitemap_node_posts_count'] = array(        $form['xmlsitemap']['xmlsitemap_node_posts_count'] = array(
217          '#type' => 'select',          '#type' => 'select',
218          '#title' => t('Posts threshold'),          '#title' => t('XML site map - posts threshold'),
219          '#description' => t('The number of posts a user must author before his posts are added to the site map.'),          '#description' => t('The number of posts a user must author before his posts are added to the site map.'),
220          '#default_value' => variable_get('xmlsitemap_node_posts_count_'. $account->uid, variable_get('xmlsitemap_node_posts_count', 100)),          '#default_value' => variable_get('xmlsitemap_node_posts_count_'. $account->uid, variable_get('xmlsitemap_node_posts_count', 100)),
221          '#options' => array(          '#options' => array(
# Line 236  function xmlsitemap_node_user($op, &$edi Line 227  function xmlsitemap_node_user($op, &$edi
227            '100' => t('100'),            '100' => t('100'),
228            '200' => t('200'),            '200' => t('200'),
229            '500' => t('500'),            '500' => t('500'),
230            '0' => t('The posts of the user will never be added to the site map'),            '0' => t('Never add the posts'),
231          ),          ),
232          '#access' => user_access('override profile settings') || user_access('administer users'),          '#access' => user_access('override profile settings') || user_access('administer users'),
233        );        );

Legend:
Removed from v.1.19.2.71  
changed lines
  Added in v.1.19.2.72

  ViewVC Help
Powered by ViewVC 1.1.2