Permalink
Browse files

modified hook_userpoints to include a default for

  • Loading branch information...
1 parent 12951a3 commit 00892996a61aac52931ac044675cda8eea8e571e jredding committed Jan 9, 2009
@@ -1,5 +1,5 @@
<?php
-// $Id: user2userpoints.module,v 1.5 2009-01-09 09:20:16 jredding Exp $
+// $Id: user2userpoints.module,v 1.6 2009-01-09 10:39:21 jredding Exp $
/**
* @file
@@ -220,7 +220,7 @@ function user2userpoints_giveform_submit($form, &$form_state) {
userpoints_userpointsapi($params);
}
-function user2userpoints_userpoints($op, $params) {
+function user2userpoints_userpoints($op, $params = array()) {
switch ($op) {
case 'setting':
$form['user2user'] = array(
@@ -1,5 +1,5 @@
<?php
-// $Id: userpoints_badges.module,v 1.2 2009-01-09 09:20:17 jredding Exp $
+// $Id: userpoints_badges.module,v 1.3 2009-01-09 10:39:21 jredding Exp $
function userpoints_badges_menu() {
$items = array();
@@ -103,7 +103,7 @@ function userpoints_badges_run_mass_badge_check($bid, $userpoints_goal) {
/**
* Implementation of hook_userpoints
*/
-function userpoints_badges_userpoints($op, $params) {
+function userpoints_badges_userpoints($op, $params = array()) {
switch ($op) {
case 'setting':
$group = 'userpoints_badges';
@@ -1,6 +1,6 @@
<?php
-//$Id: userpoints_invite.module,v 1.10 2009-01-09 09:20:17 jredding Exp $
+//$Id: userpoints_invite.module,v 1.11 2009-01-09 10:39:21 jredding Exp $
// Copyright 2005-2007 Khalid Baheyeldin http://2bits.com
@@ -18,7 +18,7 @@ function userpoints_invite_help($path, $arg) {
return $output;
}
-function userpoints_invite_userpoints($op, $params) {
+function userpoints_invite_userpoints($op, $params = array()) {
switch($op) {
case 'setting':
$group = 'invite';
@@ -1,5 +1,5 @@
<?
-// $Id: userpoints_no_negative.module,v 1.2 2009-01-09 09:20:17 jredding Exp $
+// $Id: userpoints_no_negative.module,v 1.3 2009-01-09 10:39:22 jredding Exp $
/**
* @file
@@ -9,7 +9,7 @@
/**
* Implementation of hook_userpoints
*/
-function userpoints_no_negative_userpoints($op, $params) {
+function userpoints_no_negative_userpoints($op, $params = array()) {
$uid = $params['uid'];
$points = $params['points'];
if ($op == 'points before') {
@@ -1,9 +1,9 @@
<?php
-// $Id: userpoints_pageviews.module,v 1.2 2009-01-09 09:20:17 jredding Exp $
+// $Id: userpoints_pageviews.module,v 1.3 2009-01-09 10:39:22 jredding Exp $
define('USERPOINTS_PAGE_VIEWS', 'userpoints_pageviews');
-function userpoints_pageviews_userpoints($op, $params) {
+function userpoints_pageviews_userpoints($op, $params = array()) {
if ($op == 'setting') {
$group = 'invite';
$form[$group] = array(
@@ -1,6 +1,6 @@
<?php
-//$Id: userpoints_role.module,v 1.5 2009-01-09 09:20:18 jredding Exp $
+//$Id: userpoints_role.module,v 1.6 2009-01-09 10:39:22 jredding Exp $
// Copyright 2005-2007 Khalid Baheyeldin http://2bits.com
@@ -20,7 +20,7 @@ function userpoints_role_help($path, $arg) {
/**
* Role promotion/demotion based on points gained/lost
*/
-function userpoints_role_userpoints($op, $params) {
+function userpoints_role_userpoints($op, $params = array()) {
switch($op) {
case 'setting':
$group = 'role';
@@ -1,5 +1,5 @@
<?php
-//$Id: userpoints_role_exempt.module,v 1.4 2009-01-09 09:20:18 jredding Exp $
+//$Id: userpoints_role_exempt.module,v 1.5 2009-01-09 10:39:22 jredding Exp $
// Copyright 2005-2008 Khalid Baheyeldin http://2bits.com
@@ -13,7 +13,7 @@ function userpoints_role_exempt_help($section) {
}
}
-function userpoints_role_exempt_userpoints($op, $params) {
+function userpoints_role_exempt_userpoints($op, $params = array()) {
switch($op) {
case 'setting':
$group = 'role_exempt';

0 comments on commit 0089299

Please sign in to comment.