You are here

function regcode_activate_action in Registration codes 8

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

Regcode activate action.

File

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

Code

function regcode_activate_action(&$object, $context = []) {
  \Drupal::database()
    ->update('regcode')
    ->fields([
    'is_active' => 1,
  ])
    ->condition('rid', $object->rid)
    ->execute();
}