added addaccount-hook for auto created accounts

This commit is contained in:
Lars Kneschke 2004-01-25 22:27:31 +00:00
parent e6b2a034e5
commit 893c085f78
2 changed files with 18 additions and 0 deletions

View File

@ -1047,6 +1047,15 @@
} }
} }
$this->db->transaction_commit(); $this->db->transaction_commit();
$GLOBALS['hook_values']['account_lid'] = $acct_info['account_lid'];
$GLOBALS['hook_values']['account_id'] = $accountid;
$GLOBALS['hook_values']['new_passwd'] = $acct_info['account_passwd'];
$GLOBALS['hook_values']['account_status'] = $acct_info['account_status'];
$GLOBALS['phpgw']->hooks->process($GLOBALS['hook_values']+array(
'location' => 'addaccount'
),False,True); // called for every app now, not only enabled ones
return $accountid; return $accountid;
} }

View File

@ -445,6 +445,15 @@
} }
} }
$this->db->transaction_commit(); $this->db->transaction_commit();
$GLOBALS['hook_values']['account_lid'] = $acct_info['account_lid'];
$GLOBALS['hook_values']['account_id'] = $accountid;
$GLOBALS['hook_values']['new_passwd'] = $acct_info['account_passwd'];
$GLOBALS['hook_values']['account_status'] = $acct_info['account_status'];
$GLOBALS['phpgw']->hooks->process($GLOBALS['hook_values']+array(
'location' => 'addaccount'
),False,True); // called for every app now, not only enabled ones
return $accountid; return $accountid;
} }