function regcode_og_settings_delete_confirm in Registration codes 7
Same name and namespace in other branches
- 7.2 regcode_og/regcode_og.module \regcode_og_settings_delete_confirm()
Page callback for role-rule deletion; validates the security token as well.
1 string reference to 'regcode_og_settings_delete_confirm'
- regcode_og_menu in regcode_og/
regcode_og.module - Implements hook_menu().
File
- regcode_og/
regcode_og.module, line 75 - Install, uninstall and scheme functions for the regcode_og module.
Code
function regcode_og_settings_delete_confirm($machine_name) {
if (empty($_GET['token']) || !drupal_valid_token($_GET['token'], $machine_name)) {
return MENU_ACCESS_DENIED;
}
regcode_og_settings_delete($machine_name);
drupal_set_message(t('Rule deleted'));
drupal_goto('admin/config/people/regcode/og');
}