1 system.install system_update_1098()

Uninstall the fast_token_browser contrib module, now part of core.

Related topics

File

core/modules/system/system.install, line 3638
Install, update and uninstall functions for the system module.

Code

function system_update_1098() {
  $module = db_query("SELECT name FROM {system} WHERE name = 'fast_token_browser' AND type = 'module'")->fetchField();
  if ($module) {
    $path = backdrop_get_path('module', 'fast_token_browser');
    backdrop_set_message(t('The contributed module <em>Fast Token Browser</em> has been located at %path. The module has been disabled, since its functionality is now provided by Backdrop core. It is recommended that you remove this module from your site.', array('%path' => BACKDROP_ROOT . '/' . $path)), 'warning');
    // Remove the entry for the Fast Token Browser module from the system table.
    // As this module does not provide any config or settings, there doesn't
    // seem to be anything else left to clean up or migrate.
    // While the contrib module remains in the filesystem, this entry will be
    // recreated, but it will have status 0 (disabled), and schema -1
    // (uninstalled), so it is safe to remove.
    db_query("DELETE FROM {system} WHERE name = 'fast_token_browser' AND type = 'module'");
  }
  else {
    return t('<em>Fast Token Browser</em> not found. Nothing to be done.');
  }
}