You are here

function regcode_og_settings_delete in Registration codes 7

Same name and namespace in other branches
  1. 7.2 regcode_og/regcode_og.module \regcode_og_settings_delete()

Callback: Delete a rule.

1 call to regcode_og_settings_delete()
regcode_og_settings_delete_confirm in regcode_og/regcode_og.module
Page callback for role-rule deletion; validates the security token as well.

File

regcode_og/regcode_og.module, line 90
Install, uninstall and scheme functions for the regcode_og module.

Code

function regcode_og_settings_delete($machine_name) {
  $settings = variable_get('regcode_og_settings', array());
  unset($settings[$machine_name]);
  variable_set('regcode_og_settings', $settings);
}