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

Diff of /contributions/modules/roledelay/roledelay.module

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

revision 1.1, Sun Aug 14 22:47:33 2005 UTC revision 1.2, Mon Aug 29 01:12:12 2005 UTC
# Line 1  Line 1 
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
# Line 26  function roledelay_settings() { Line 26  function roledelay_settings() {
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'));

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.2