Index: pp.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/profile_privacy/Attic/pp.module,v
retrieving revision 1.1.2.2
diff -u -p -r1.1.2.2 pp.module
--- pp.module	8 Sep 2006 00:02:05 -0000	1.1.2.2
+++ pp.module	16 Nov 2006 10:43:45 -0000
@@ -53,7 +53,11 @@ function pp_form($uid) {
             $fields[$category][] = $item;
             $form['categories'][$category][$key] = array('#type' => 'fieldset', '#title' => $item['title'], '#tree' => TRUE);
             $form['categories'][$category][$key]['item'] = array('#type' => 'markup', '#value' => $item['value']);
-            $form['categories'][$category][$key]['cb'] = array('#type' => 'checkbox', '#title' => 'Show on public profile page', '#default_value' => 1);  
+            $form['categories'][$category][$key]['cb'] = array(
+              '#type' => 'checkbox',
+              '#title' => 'Show on public profile page',
+              '#default_value' => $account->pp_privacy[$key]['cb'] === 0 ? $account->pp_privacy[$key]['cb'] : 1,
+            );
           }
         }
         // if the category has no proper fields, omit it.
@@ -65,7 +69,7 @@ function pp_form($uid) {
     }
   }
   $form['uid'] = array('#type' => 'value', '#value' => (int)$uid);
-  $form['submit'] = array('#type' => 'submit', '#title' => t('Submit'));
+  $form['submit'] = array('#type' => 'submit', '#value' => t('Submit'));
   return drupal_get_form('pp_form', $form);
 }
 
