You are here

copyright_block.install in Copyright Block module 8

Install, update and uninstall functions for copyright_block.

File

copyright_block.install
View source
<?php

/**
 * @file
 * Install, update and uninstall functions for copyright_block.
 */

/**
 * Fix "seperator" typos.
 */
function copyright_block_update_8100() {
  $config = \Drupal::configFactory()
    ->getEditable('copyright_block.settings');

  // Copy the value from the original config value to the new one, then remove
  // the original.
  $config
    ->set('separator', $config
    ->get('seperator'))
    ->save();
  $config
    ->clear('seperator')
    ->save();
}

Functions

Namesort descending Description
copyright_block_update_8100 Fix "seperator" typos.