You are here

function merci_rro_delete_submit in MERCI (Manage Equipment Reservations, Checkout and Inventory) 6

1 string reference to 'merci_rro_delete_submit'
merci_rro_override_delete in modules/merci_rro/merci_rro.admin.inc

File

modules/merci_rro/merci_rro.admin.inc, line 77
Admin section functions for MERCI Role Rule Override

Code

function merci_rro_delete_submit($form_id, $form_values) {
  $values = $form_values['values'];
  $sql = "DELETE FROM {merci_rro}\n  WHERE rid = %d\n  AND type = '%s'";
  db_query($sql, $values['merci_rro_rid'], $values['merci_rro_type']);
  $role = merci_rro_role_name_from_rid($values['merci_rro_roles']);
  drupal_set_message('Override deleted for ' . merci_rro_role_name_from_rid($values['merci_rro_rid']));
}