You are here

function shorten_update_7001 in Shorten URLs 8

Same name and namespace in other branches
  1. 7.2 shorten.install \shorten_update_7001()
  2. 7 shorten.install \shorten_update_7001()

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_7001() {
  \Drupal::config('shorten.settings')
    ->clear('shorten_generate_token')
    ->save();
}