function regcode_deactivate_action in Registration codes 7
Same name and namespace in other branches
- 8 regcode.module \regcode_deactivate_action()
- 6.2 regcode.module \regcode_deactivate_action()
- 7.2 regcode.module \regcode_deactivate_action()
Regcode deactivate action.
File
- ./
regcode.module, line 684 - Main functionality and hooks of regcode module.
Code
function regcode_deactivate_action(&$object, $context = array()) {
db_update('regcode')
->fields(array(
'is_active' => 0,
))
->condition('rid', $object->rid)
->execute();
}