You are here

function regcode_admin_delete_confirm in Registration codes 6

Same name in this branch
  1. 6 regcode.admin.php \regcode_admin_delete_confirm()
  2. 6 regcode_roles/regcode_roles.module \regcode_admin_delete_confirm()

Page callback for role-rule deletion.

1 string reference to 'regcode_admin_delete_confirm'
regcode_menu in ./regcode.module
Implementation of hook_menu().

File

regcode_roles/regcode_roles.module, line 51

Code

function regcode_admin_delete_confirm($rid) {
  if (empty($_GET['token']) || !drupal_valid_token($_GET['token'], $rid)) {
    return MENU_ACCESS_DENIED;
  }
  regcode_roles_delete_rule($rid);
  drupal_set_message(t('Rule was deleted (Rule #@rule)', array(
    '@rule' => $rid,
  )));
  drupal_goto('admin/user/regcodes/roles');
}