X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Ffilter%2Fbooking_filter.php;h=73aad6d671cfc5a50aa0a38bfa6709f80ee77fea;hb=6c18a7bf8866b5ebdcb219891efaad99989a2cd5;hp=75e564c6286cb18a715a74499828d1ddfb44b326;hpb=98e44adab9035e30efe78181b76d78c6e13ba574;p=mailer.git diff --git a/inc/filter/booking_filter.php b/inc/filter/booking_filter.php index 75e564c628..73aad6d671 100644 --- a/inc/filter/booking_filter.php +++ b/inc/filter/booking_filter.php @@ -16,8 +16,8 @@ * $Author:: $ * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * - * Copyright (c) 2009 - 2011 by Mailer Developer Team * - * For more information visit: http://www.mxchange.org * + * Copyright (c) 2009 - 2012 by Mailer Developer Team * + * For more information visit: http://mxchange.org * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * @@ -42,9 +42,20 @@ if (!defined('__SECURITY')) { // Filter for adding booking record function FILTER_ADD_BOOKING_RECORD ($filterData) { + //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Called!'); // Add a record + addBookingRecord($filterData['subject'], $filterData['userid'], $filterData['points'], $filterData['points_mode']); + + // Return data + //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Done!'); + return $filterData; +} + +// Filter for adding member action +function FILTER_ADD_BOOKING_MEMBER_ACTION ($filterData) { //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Called!'); - addBookingRecord($filterData['subject'], $filterData['userid'], $filterData['points'], $filterData['mode']); + // Add entry + array_push($filterData, 'list_booking'); // Return data //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Done!');