| 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 |
| 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 |
} |
} |