/[drupal]/contributions/modules/bio/bio.module
ViewVC logotype

Diff of /contributions/modules/bio/bio.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.2.2.25, Mon Jan 28 08:30:13 2008 UTC revision 1.2.2.26, Wed Mar 19 00:55:55 2008 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: bio.module,v 1.2.2.24 2008/01/28 07:41:21 webchick Exp $  // $Id: bio.module,v 1.2.2.25 2008/01/28 08:30:13 webchick Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 268  function bio_user($op, &$edit, &$account Line 268  function bio_user($op, &$edit, &$account
268          return $bio;          return $bio;
269        }        }
270        break;        break;
271    
272      case 'delete':      case 'delete':
273        node_delete(bio_for_user($account->uid));        node_delete($nid);
274          break;
275    
276        case 'update':
277          // Publish or unpublish the bio node on changes to the user's status
278          // (active vs. blocked).
279          if (isset($edit['status']) && $edit['status'] != $account->status) {
280            $node = node_load($nid);
281            $node->status = (int)$edit['status'];
282            node_save($node);
283          }
284        break;        break;
285    
286    }    }
287  }  }
288    

Legend:
Removed from v.1.2.2.25  
changed lines
  Added in v.1.2.2.26

  ViewVC Help
Powered by ViewVC 1.1.2