You are here

function regcode_delete_action in Registration codes 8

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

Regcode delete action.

File

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

Code

function regcode_delete_action(&$object, $context = []) {
  \Drupal::database()
    ->delete('regcode')
    ->condition('rid', $object->rid)
    ->execute();
}