1.20.x image.install image_update_1008()

Uninstall the imagecache_token contrib module, now part of core.

Related topics

File

modules/image/image.install, line 359
Install, update and uninstall functions for the image module.

Code

function image_update_1008() {
  $module = db_query("SELECT name FROM {system} WHERE name = 'imagecache_token' AND type = 'module'")->fetchField();
  if ($module) {
    db_query("DELETE FROM {system} WHERE name = 'imagecache_token' AND type = 'module'");
  }
  else {
    return t('<em>Imagecache Token</em> module not found. Nothing to be done.');
  }
}