You are here

function shorten_update_8001 in Shorten URLs 8.2

Implements hook_update_N(). Removes the shorten_generate_token variable since the token module now loads tokens only when needed.

File

./shorten.install, line 22
(Un)installs the Shorten module.

Code

function shorten_update_8001() {
  \Drupal::configFactory()
    ->getEditable('shorten.settings')
    ->clear('shorten_generate_token')
    ->save();
}