Index: xmlsitemap/xmlsitemap.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/xmlsitemap/xmlsitemap/Attic/xmlsitemap.module,v
retrieving revision 1.1.2.95
diff -u -p -r1.1.2.95 xmlsitemap.module
--- xmlsitemap/xmlsitemap.module	29 Apr 2009 12:11:26 -0000	1.1.2.95
+++ xmlsitemap/xmlsitemap.module	4 May 2009 20:32:47 -0000
@@ -142,7 +142,7 @@ function xmlsitemap_menu() {
  * Implementation of hook_perm().
  */
 function xmlsitemap_perm() {
-  return array('by-pass the authored nodes check', 'override node settings', 'override profile settings');
+  return array('override node settings', 'override profile settings');
 }
 
 /**
Index: xmlsitemap_node/xmlsitemap_node.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/xmlsitemap/xmlsitemap_node/xmlsitemap_node.module,v
retrieving revision 1.19.2.106
diff -u -p -r1.19.2.106 xmlsitemap_node.module
--- xmlsitemap_node/xmlsitemap_node.module	4 May 2009 19:29:45 -0000	1.19.2.106
+++ xmlsitemap_node/xmlsitemap_node.module	4 May 2009 20:32:47 -0000
@@ -147,39 +147,6 @@ function xmlsitemap_node_form_node_type_
 /**
  * Implementation of hook_form_FORM_ID_alter().
  */
-function xmlsitemap_node_form_user_admin_settings_alter(&$form, &$from_state) {
-  if (!isset($form['xmlsitemap'])) {
-    $form['xmlsitemap'] = array(
-      '#type' => 'fieldset',
-      '#title' => t('XML site map'),
-      '#collapsible' => TRUE,
-    );
-  }
-  $form['xmlsitemap']['xmlsitemap_node_posts_count'] = array(
-    '#type' => 'select',
-    '#title' => t('User posts threshold'),
-    '#description' => t('The number of posts a user must author before his posts are added to the site map.') .' '. t('This is the default value used for the users for which the post threshold has not been set.'),
-    '#default_value' => variable_get('xmlsitemap_node_posts_count', 100),
-    '#options' => array(
-      '1' => t('1'),
-      '5' => t('5'),
-      '10' => t('10'),
-      '20' => t('20'),
-      '50' => t('50'),
-      '100' => t('100'),
-      '200' => t('200'),
-      '500' => t('500'),
-      '0' => t('Never add the posts'),
-    ),
-    '#access' => user_access('override profile settings') || user_access('administer users'),
-  );
-  $form['buttons']['#weight'] = isset($form['buttons']['#weight']) ? $form['buttons']['#weight'] + 1 : 1;
-  $form['#submit'][] = 'xmlsitemap_user_form_submit';
-}
-
-/**
- * Implementation of hook_form_FORM_ID_alter().
- */
 function xmlsitemap_node_form_xmlsitemap_settings_alter(&$form, &$from_state) {
   $options = xmlsitemap_priority_options();
   $form['xmlsitemap_node'] = array(
@@ -303,51 +270,6 @@ function xmlsitemap_node_nodeapi(&$node,
 }
 
 /**
- * Implementation of hook_user().
- */
-function xmlsitemap_node_user($op, &$edit, &$account, $category = NULL) {
-  switch ($op) {
-    case 'form':
-      if ($category != 'account') {
-        return array();
-      }
-    case 'register':
-      $form = xmlsitemap_user_form_fieldset();
-      $form['xmlsitemap']['xmlsitemap_node_posts_count'] = array(
-        '#type' => 'select',
-        '#title' => t('User posts threshold'),
-        '#description' => t('The number of posts a user must author before his posts are added to the site map.'),
-        '#default_value' => variable_get('xmlsitemap_node_posts_count_'. $account->uid, variable_get('xmlsitemap_node_posts_count', 100)),
-        '#options' => array(
-          '1' => t('1'),
-          '5' => t('5'),
-          '10' => t('10'),
-          '20' => t('20'),
-          '50' => t('50'),
-          '100' => t('100'),
-          '200' => t('200'),
-          '500' => t('500'),
-          '0' => t('Never add the posts'),
-        ),
-        '#access' => user_access('override profile settings') || user_access('administer users'),
-      );
-      return $form;
-    case 'insert':
-    case 'update':
-      if (isset($edit['xmlsitemap_node_posts_count'])) {
-        variable_set('xmlsitemap_node_posts_count_'. $account->uid, $edit['xmlsitemap_node_posts_count']);
-        $edit['xmlsitemap_node_posts_count'] = NULL;
-        xmlsitemap_flag_sitemap();
-      }
-      break;
-    case 'delete':
-      variable_del('xmlsitemap_node_posts_count_'. $account->uid);
-      xmlsitemap_flag_sitemap();
-      break;
-  }
-}
-
-/**
  * Implementation of hook_xmlsitemap_description().
  */
 function xmlsitemap_node_xmlsitemap_description() {
@@ -362,14 +284,6 @@ function xmlsitemap_node_xmlsitemap_link
   if (!($node = node_load($id))) {
     return XMLSITEMAP_LINK_DISABLED;
   }
-  if (!($user = user_load($node->uid))) {
-    return XMLSITEMAP_LINK_DISABLED;
-  }
-  $posts_threshold = variable_get('xmlsitemap_node_posts_count_'. $node->uid, variable_get('xmlsitemap_node_posts_count', 100));
-  $posts = (integer) db_result(db_query("SELECT COUNT(nid) FROM {node} WHERE uid = %d", $node->uid));
-  if (!user_access('by-pass the authored nodes check', $user) && $posts_threshold > $posts) {
-    return XMLSITEMAP_LINK_DISABLED;
-  }
   if ($node->status) {
     return 0;
   }
