| 1 |
<?php |
<?php |
| 2 |
// $Id: roledelay.module,v 1.0 2005/08/14 16:40:00 crunchywelch Exp $ |
// $Id: roledelay.module,v 1.1 2005/08/14 22:47:33 crunchywelch Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* hook_settings() implementation |
* hook_settings() implementation |
| 26 |
/** |
/** |
| 27 |
* hook_user() implementation |
* hook_user() implementation |
| 28 |
*/ |
*/ |
| 29 |
function roledelay_user($op, &$edit, &$user, $category) { |
function roledelay_user($op, &$edit, &$user, $category = NULL) { |
| 30 |
if($op == 'insert' && (variable_get('roledelay_role1', 'none') != 'none')) { |
if($op == 'insert' && (variable_get('roledelay_role1', 'none') != 'none')) { |
| 31 |
// calculate the timestamp when the stage will be reached |
// calculate the timestamp when the stage will be reached |
| 32 |
$wait = $user->created + ((variable_get('roledelay_increment1', '1')+1) * variable_get('roledelay_period1', '3600')); |
$wait = $user->created + ((variable_get('roledelay_increment1', '1')+1) * variable_get('roledelay_period1', '3600')); |