From 99a54e7f76a392680c936137f53c520227749220 Mon Sep 17 00:00:00 2001 From: Nathan Coad Date: Thu, 29 Jun 2017 12:46:24 +1000 Subject: [PATCH] add debug statement --- booking.earlyaccess_admin.inc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/booking.earlyaccess_admin.inc b/booking.earlyaccess_admin.inc index 9115cca..accb3dd 100644 --- a/booking.earlyaccess_admin.inc +++ b/booking.earlyaccess_admin.inc @@ -57,6 +57,7 @@ function booking_earlyaccess_generate_codes() { //get the number of codes we need to have available from variable_get('booking_earlyaccess_codes_count') $num_codes_to_add = variable_get('booking_earlyaccess_codes_count', 0) - $num_codes_available; //add required number of codes to database table + watchdog('booking_debug', "Creating $num_codes_to_add early access codes."); //use the multi-insert query type at https://drupal.org/node/310079 $insert_query = db_insert('booking_regn_earlyaccess_codes') @@ -74,6 +75,7 @@ function booking_earlyaccess_generate_codes() { )); } $insert_query->execute(); + return t("Created $num_codes_to_add early access codes."); } /**