Index: bio.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/bio/bio.module,v
retrieving revision 1.2.2.12
diff -u -r1.2.2.12 bio.module
--- bio.module	3 Jul 2007 18:28:09 -0000	1.2.2.12
+++ bio.module	11 Sep 2007 04:16:00 -0000
@@ -10,6 +10,18 @@
       drupal_goto('node/'.$nid.'/edit');
     }
   }
+  else if (variable_get('bio_profile_required', 0)) {
+    global $user;
+    // only accessible location is logout
+    if ($user->uid > 1 && strcmp('logout', $_GET['q'])) {
+      // Make sure the user creates a bio
+      if (strcmp('user/' . $user->uid . '/bio', $_GET['q'])) {
+        if (!bio_for_user($user->uid)) {
+          drupal_goto('user/' . $user->uid . '/bio'); 
+        }
+      }
+    }
+  }
 }
 
 /** 
@@ -222,6 +234,12 @@
     '#description' => t('Display nothing but the bio node on the user profile page.'),
     '#default_value' => variable_get('bio_profile_takeover', 0),
   );
+  $form['bio_profile_required'] = array(
+    '#type' => 'checkbox',
+    '#title' => t('Required'),
+    '#description' => t('Enforce the creation of a Bio node before using the rest of the site.'),
+    '#default_value' => variable_get('bio_profile_required', 0),
+  );
   $add_a_submit = system_settings_form($form);
   $add_a_submit['#validate']['bio_settings_validate_xxx'] = array();
   return $add_a_submit;
