? .svn
? bio-nodes.patch
Index: bio.module
===================================================================
RCS file: /cvs/drupal/contributions/modules/bio/bio.module,v
retrieving revision 1.2.2.4
diff -u -p -r1.2.2.4 bio.module
--- bio.module	1 Feb 2007 18:08:26 -0000	1.2.2.4
+++ bio.module	8 Feb 2007 21:19:08 -0000
@@ -64,14 +64,16 @@ function bio_node_info() {
 /* hook_nodeapi()
  */
 function bio_nodeapi(&$node, $op, $a3 = NULL, $a4 = NULL) { 
-  switch ($op) {
-    case 'validate':
-      // This user already has a bio node and this isn't it
-      $nid = bio_for_user($node->uid);
-      if ($nid && $nid != $node->nid) {
-        form_set_error('name', t('This user already has a biography. Edit it <a href="%link">here</a> or assign this entry to another user.', array("%link" => url('node/'.$nid.'/edit'))));
-      } 
-      break;
+  if ($node->type == variable_get('bio_nodetype', 'bio')) {
+    switch ($op) {
+      case 'validate':
+        // This user already has a bio node and this isn't it
+        $nid = bio_for_user($node->uid);
+        if ($nid && $nid != $node->nid) {
+          form_set_error('name', t('This user already has a biography. Edit it <a href="%link">here</a> or assign this entry to another user.', array("%link" => url('node/'.$nid.'/edit'))));
+        } 
+        break;
+    }
   }
 }
 
