function uc_roles_deletion_form_submit in Ubercart 5
Same name and namespace in other branches
- 6.2 uc_roles/uc_roles.admin.inc \uc_roles_deletion_form_submit()
- 7.3 uc_roles/uc_roles.admin.inc \uc_roles_deletion_form_submit()
File
- uc_roles/
uc_roles.module, line 472 - Grants roles upon accepted payment of products
Code
function uc_roles_deletion_form_submit($form_id, $form_values) {
db_query("DELETE FROM {uc_roles_expirations} WHERE uid = %d AND rid = %d", $form_values['uid'], $form_values['rid']);
drupal_set_message(t('The expiration of role_name role for the user user_name has been deleted.', array(
'user_name' => $form_values['user'],
'role_name' => $form_values['role'],
)));
drupal_goto('admin/user/user/expiration');
}