You are here

function uc_store_uninstall in Ubercart 8.4

Same name and namespace in other branches
  1. 5 uc_store/uc_store.install \uc_store_uninstall()
  2. 6.2 uc_store/uc_store.install \uc_store_uninstall()
  3. 7.3 uc_store/uc_store.install \uc_store_uninstall()

Implements hook_uninstall().

File

uc_store/uc_store.install, line 71
Install, update, and uninstall functions for the uc_store module.

Code

function uc_store_uninstall() {
  $format = DateFormat::load('uc_store');
  if ($format) {
    \Drupal::messenger()
      ->addWarning(t('The date format %format has not been deleted. If you need to delete it, <a href=":url">please do so manually</a>.', [
      '%format' => $format
        ->label(),
      ':url' => Url::fromRoute('entity.date_format.collection')
        ->toString(),
    ]));
  }
}