function regcode_roles_delete_rule_confirm in Registration codes 7
Same name and namespace in other branches
- 6.2 regcode_roles/regcode_roles.module \regcode_roles_delete_rule_confirm()
- 7.2 regcode_roles/regcode_roles.module \regcode_roles_delete_rule_confirm()
Page callback for role-rule deletion; validates the security token as well.
1 string reference to 'regcode_roles_delete_rule_confirm'
- regcode_roles_menu in regcode_roles/
regcode_roles.module - Implements hook_menu().
File
- regcode_roles/
regcode_roles.module, line 49 - Main functionality of regcode_role module.
Code
function regcode_roles_delete_rule_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/config/people/regcode/roles');
}