/[drupal]/contributions/modules/userpoints/userpoints_rules.module
ViewVC logotype

Diff of /contributions/modules/userpoints/userpoints_rules.module

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

revision 1.1.2.5, Tue Aug 11 15:41:39 2009 UTC revision 1.1.2.6, Sun Sep 13 02:47:01 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: userpoints_rules.module,v 1.1.2.4 2009/04/12 16:47:51 kbahey Exp $  // $Id: userpoints_rules.module,v 1.1.2.5 2009/08/11 15:41:39 kbahey Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 12  Line 12 
12  function userpoints_rules_userpoints($op, $params='') {  function userpoints_rules_userpoints($op, $params='') {
13    switch ($op) {    switch ($op) {
14    case 'points after':    case 'points after':
15      rules_invoke_event('userpoints_event_points_awarded', $params['uid'], $params['points']);      $account = user_load($params['uid']);
16        rules_invoke_event('userpoints_event_points_awarded', $account, $params['points']);
17      break;      break;
18    }    }
19  }  }

Legend:
Removed from v.1.1.2.5  
changed lines
  Added in v.1.1.2.6

  ViewVC Help
Powered by ViewVC 1.1.2