You are here

function regcode_activate_action in Registration codes 7

Same name and namespace in other branches
  1. 8 regcode.module \regcode_activate_action()
  2. 6.2 regcode.module \regcode_activate_action()
  3. 7.2 regcode.module \regcode_activate_action()

Regcode activate action.

File

./regcode.module, line 673
Main functionality and hooks of regcode module.

Code

function regcode_activate_action(&$object, $context = array()) {
  db_update('regcode')
    ->fields(array(
    'is_active' => 1,
  ))
    ->condition('rid', $object->rid)
    ->execute();
}