function regcode_admin_delete_confirm in Registration codes 6
Same name in this branch
- 6 regcode.admin.php \regcode_admin_delete_confirm()
- 6 regcode_roles/regcode_roles.module \regcode_admin_delete_confirm()
Page callback for reg code deletion.
1 string reference to 'regcode_admin_delete_confirm'
- regcode_menu in ./
regcode.module - Implementation of hook_menu().
File
- ./
regcode.admin.php, line 54 - Functions and pages needed for the administration interface for the regcode module.
Code
function regcode_admin_delete_confirm($rid) {
if (empty($_GET['token']) || !drupal_valid_token($_GET['token'], $rid)) {
MENU_ACCESS_DENIED;
}
regcode_admin_delete($rid);
drupal_set_message(t('Code was deleted (Code #@code)', array(
'@code' => $rid,
)));
drupal_goto('admin/user/regcodes/list');
}