You are here

function regcode_og_delete_rule_confirm in Registration codes 6

Same name and namespace in other branches
  1. 6.2 regcode_og/regcode_og.module \regcode_og_delete_rule_confirm()

Page callback for role-rule deletion.

1 string reference to 'regcode_og_delete_rule_confirm'
regcode_og_menu in regcode_og/regcode_og.module
Implementation of hook_menu()

File

regcode_og/regcode_og.module, line 50

Code

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