You are here

function certificate_set_delete_form_submit in Certificate 6

File

./certificate.admin.inc, line 631
Administrative pages for the module.

Code

function certificate_set_delete_form_submit(&$form, &$form_state) {
  $sql = "delete from {certificate_types} where type_id = %d";
  db_query($sql, $form_state['values']['type_id']);
  $sql = "delete from {certificate_criteria} where type_id = %d";
  db_query($sql, $form_state['values']['type_id']);
}