add debug statement

This commit is contained in:
2017-06-29 12:46:24 +10:00
parent 9d5ebccb0e
commit 99a54e7f76

View File

@@ -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.");
}
/**