function regcode_roles_delete_rule in Registration codes 7
Same name and namespace in other branches
- 6.2 regcode_roles/regcode_roles.module \regcode_roles_delete_rule()
- 6 regcode_roles/regcode_roles.module \regcode_roles_delete_rule()
- 7.2 regcode_roles/regcode_roles.module \regcode_roles_delete_rule()
Delete a rule.
1 call to regcode_roles_delete_rule()
- regcode_roles_delete_rule_confirm in regcode_roles/
regcode_roles.module - Page callback for role-rule deletion; validates the security token as well.
File
- regcode_roles/
regcode_roles.module, line 64 - Main functionality of regcode_role module.
Code
function regcode_roles_delete_rule($rid) {
db_delete('regcode_roles')
->condition('id', $rid)
->execute();
}