You are here

function userprotect_update_7000 in User protect 7

Changes up_delete to up_cancel, in line with core's change from user delete to user cancel.

File

./userprotect.install, line 164
Install, update and uninstall functions for the userprotect module.

Code

function userprotect_update_7000() {
  $spec = array(
    'type' => 'int',
    'size' => 'small',
    'not null' => TRUE,
    'default' => 0,
    'description' => 'Cancellation protection.',
  );
  db_change_field('userprotect', 'up_delete', 'up_cancel', $spec);
}