/[drupal]/contributions/modules/workflow_ng/workflow_ng/modules/workflow_ng_user.inc
ViewVC logotype

Diff of /contributions/modules/workflow_ng/workflow_ng/modules/workflow_ng_user.inc

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

revision 1.1.2.2.2.14, Thu Feb 19 11:36:07 2009 UTC revision 1.1.2.2.2.15, Thu Feb 19 11:53:34 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: workflow_ng_user.inc,v 1.1.2.2.2.13 2009/02/19 10:48:21 fago Exp $  // $Id: workflow_ng_user.inc,v 1.1.2.2.2.14 2009/02/19 11:36:07 fago Exp $
3    
4  /**  /**
5   * @file Workflow-ng integration for the user module   * @file Workflow-ng integration for the user module
# Line 91  function workflow_ng_user($op, &$edit, & Line 91  function workflow_ng_user($op, &$edit, &
91    
92      // Allow adding user roles during registration      // Allow adding user roles during registration
93      if ($op == 'insert' && isset($account->roles)) {      if ($op == 'insert' && isset($account->roles)) {
94        $edit += array('roles' => array());        if (empty($edit['roles'])) {
95            $edit['roles'] = array();
96          }
97        $edit['roles'] += $account->roles;        $edit['roles'] += $account->roles;
98      }      }
99    }    }

Legend:
Removed from v.1.1.2.2.2.14  
changed lines
  Added in v.1.1.2.2.2.15

  ViewVC Help
Powered by ViewVC 1.1.2