You are here

function regcode_clean_codes in Registration codes 5.3

Same name and namespace in other branches
  1. 6 regcode.api.php \regcode_clean_codes()

Clean all codes from the db

Parameters

$action: Action to perform when cleaning the code: clean - clean codes from db

  • - do nothing
1 call to regcode_clean_codes()
regcode_import_stream in ./regcode_api.inc.php
Import codes from a stream (plain list or CSV text data)

File

./regcode_api.inc.php, line 214
regcode_api.inc.php contains general low-level functions for the registration-code module, for tasks like

Code

function regcode_clean_codes($action = 'clean') {
  if ($action == 'clean') {
    db_query("TRUNCATE {regcode}");
  }
}